atom_content_client.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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(
  21. std::vector<url::SchemeWithType>* standard_schemes,
  22. std::vector<url::SchemeWithType>* referrer_schemes,
  23. std::vector<std::string>* savable_schemes) override;
  24. void AddPepperPlugins(
  25. std::vector<content::PepperPluginInfo>* plugins) override;
  26. void AddServiceWorkerSchemes(
  27. std::set<std::string>* service_worker_schemes) override;
  28. void AddSecureSchemesAndOrigins(
  29. std::set<std::string>* secure_schemes,
  30. std::set<GURL>* secure_origins) override;
  31. private:
  32. DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
  33. };
  34. } // namespace atom
  35. #endif // ATOM_APP_ATOM_CONTENT_CLIENT_H_