// Copyright (c) 2014 GitHub, Inc. // 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_ #include #include #include #include "content/public/common/content_client.h" namespace atom { class AtomContentClient : public content::ContentClient { public: AtomContentClient(); ~AtomContentClient() override; protected: // content::ContentClient: std::string GetProduct() const override; std::string GetUserAgent() const override; base::string16 GetLocalizedString(int message_id) const override; 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; void AddAdditionalSchemes(Schemes* schemes) override; void AddPepperPlugins( std::vector* plugins) override; void AddContentDecryptionModules( std::vector* cdms, std::vector* cdm_host_file_paths) override; private: DISALLOW_COPY_AND_ASSIGN(AtomContentClient); }; } // namespace atom #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_