2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc.
|
2014-08-27 12:48:49 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_APP_ATOM_CONTENT_CLIENT_H_
|
|
|
|
#define SHELL_APP_ATOM_CONTENT_CLIENT_H_
|
2014-08-27 12:48:49 +00:00
|
|
|
|
2015-12-08 19:21:46 +00:00
|
|
|
#include <set>
|
2014-08-27 13:16:45 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2018-10-22 17:04:23 +00:00
|
|
|
#include "content/public/common/content_client.h"
|
2014-08-27 12:48:49 +00:00
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2018-10-22 17:04:23 +00:00
|
|
|
class AtomContentClient : public content::ContentClient {
|
2014-08-27 12:48:49 +00:00
|
|
|
public:
|
|
|
|
AtomContentClient();
|
2018-04-17 23:03:51 +00:00
|
|
|
~AtomContentClient() override;
|
2014-08-27 12:48:49 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// content::ContentClient:
|
2015-12-30 05:16:22 +00:00
|
|
|
base::string16 GetLocalizedString(int message_id) const override;
|
2018-10-22 17:04:23 +00:00
|
|
|
base::StringPiece GetDataResource(int resource_id,
|
|
|
|
ui::ScaleFactor) const override;
|
|
|
|
gfx::Image& GetNativeImageNamed(int resource_id) const override;
|
|
|
|
base::RefCountedMemory* GetDataResourceBytes(int resource_id) const override;
|
2017-04-04 04:50:44 +00:00
|
|
|
void AddAdditionalSchemes(Schemes* schemes) override;
|
2015-04-28 15:45:58 +00:00
|
|
|
void AddPepperPlugins(
|
|
|
|
std::vector<content::PepperPluginInfo>* plugins) override;
|
2018-04-12 15:20:00 +00:00
|
|
|
void AddContentDecryptionModules(
|
|
|
|
std::vector<content::CdmInfo>* cdms,
|
|
|
|
std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
|
2019-05-31 20:05:35 +00:00
|
|
|
bool IsDataResourceGzipped(int resource_id) const override;
|
2014-08-27 12:48:49 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_APP_ATOM_CONTENT_CLIENT_H_
|