atom_content_client.h 928 B

123456789101112131415161718192021222324252627282930313233343536
  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. virtual ~AtomContentClient();
  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. private:
  24. DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
  25. };
  26. } // namespace atom
  27. #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_