2014-10-31 11:17:05 -07:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-08-27 20:48:49 +08:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_APP_ATOM_CONTENT_CLIENT_H_
|
|
|
|
#define ATOM_APP_ATOM_CONTENT_CLIENT_H_
|
|
|
|
|
2015-12-09 00:51:46 +05:30
|
|
|
#include <set>
|
2014-08-27 21:16:45 +08:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2014-08-27 20:48:49 +08:00
|
|
|
#include "brightray/common/content_client.h"
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomContentClient : public brightray::ContentClient {
|
|
|
|
public:
|
|
|
|
AtomContentClient();
|
2018-04-17 16:03:51 -07:00
|
|
|
~AtomContentClient() override;
|
2014-08-27 20:48:49 +08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// content::ContentClient:
|
2015-01-09 17:24:36 -08:00
|
|
|
std::string GetProduct() const override;
|
2015-09-14 22:49:22 +08:00
|
|
|
std::string GetUserAgent() const override;
|
2015-12-30 10:46:22 +05:30
|
|
|
base::string16 GetLocalizedString(int message_id) const override;
|
2017-04-04 13:50:44 +09:00
|
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
2015-04-28 21:15:58 +05:30
|
|
|
void AddPepperPlugins(
|
|
|
|
std::vector<content::PepperPluginInfo>* plugins) override;
|
2018-04-12 20:50:00 +05:30
|
|
|
void AddContentDecryptionModules(
|
|
|
|
std::vector<content::CdmInfo>* cdms,
|
|
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
2014-08-27 20:48:49 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_
|