Chromium started to support widevine cdm component since c79. Before that, only bundling was supported. So, we've been using our widevine manager for downloading/managing widevine during the runtime. With enabling widevine cdm component, all our codes are deleted.
28 lines
929 B
C++
28 lines
929 B
C++
/* Copyright 2019 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_COMMON_BRAVE_CONTENT_CLIENT_H_
|
|
#define BRAVE_COMMON_BRAVE_CONTENT_CLIENT_H_
|
|
|
|
#include <vector>
|
|
|
|
#include "chrome/common/chrome_content_client.h"
|
|
|
|
class BraveContentClient : public ChromeContentClient {
|
|
public:
|
|
BraveContentClient();
|
|
~BraveContentClient() override;
|
|
|
|
private:
|
|
// ChromeContentClinet overrides:
|
|
base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
|
void AddContentDecryptionModules(
|
|
std::vector<content::CdmInfo>* cdms,
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
|
};
|
|
|
|
#endif // BRAVE_COMMON_BRAVE_CONTENT_CLIENT_H_
|