atom_content_client.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 "brightray/common/content_client.h"
  10. namespace atom {
  11. class AtomContentClient : public brightray::ContentClient {
  12. public:
  13. AtomContentClient();
  14. ~AtomContentClient() override;
  15. protected:
  16. // content::ContentClient:
  17. std::string GetProduct() const override;
  18. std::string GetUserAgent() const override;
  19. base::string16 GetLocalizedString(int message_id) const override;
  20. void AddAdditionalSchemes(Schemes* schemes) override;
  21. void AddPepperPlugins(
  22. std::vector<content::PepperPluginInfo>* plugins) override;
  23. void AddContentDecryptionModules(
  24. std::vector<content::CdmInfo>* cdms,
  25. std::vector<media::CdmHostFilePath>* cdm_host_file_paths) override;
  26. private:
  27. DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
  28. };
  29. } // namespace atom
  30. #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_