Files
brave-core/common/brave_content_client.h
T
Simon Hong 55f0f0815b Use widevine component on linux
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.
2020-12-03 20:37:35 +09:00

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_