atom_content_client.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_APP_ATOM_CONTENT_CLIENT_H_
  5. #define ATOM_APP_ATOM_CONTENT_CLIENT_H_
  6. #include <set>
  7. #include <string>
  8. #include <vector>
  9. #include "content/public/common/content_client.h"
  10. namespace atom {
  11. class AtomContentClient : public content::ContentClient {
  12. public:
  13. AtomContentClient();
  14. ~AtomContentClient() override;
  15. protected:
  16. // content::ContentClient:
  17. base::string16 GetLocalizedString(int message_id) const override;
  18. base::StringPiece GetDataResource(int resource_id,
  19. ui::ScaleFactor) const override;
  20. gfx::Image& GetNativeImageNamed(int resource_id) const override;
  21. base::RefCountedMemory* GetDataResourceBytes(int resource_id) const override;
  22. void AddAdditionalSchemes(Schemes* schemes) override;
  23. void AddPepperPlugins(
  24. std::vector<content::PepperPluginInfo>* plugins) override;
  25. void AddContentDecryptionModules(
  26. std::vector<content::CdmInfo>* cdms,
  27. std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
  28. private:
  29. DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
  30. };
  31. } // namespace atom
  32. #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_