shell_content_client.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef EXTENSIONS_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
  5. #define EXTENSIONS_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
  6. #include "base/compiler_specific.h"
  7. #include "content/public/common/content_client.h"
  8. #include "url/url_util.h"
  9. namespace extensions {
  10. class ShellContentClient : public content::ContentClient {
  11. public:
  12. ShellContentClient();
  13. ShellContentClient(const ShellContentClient&) = delete;
  14. ShellContentClient& operator=(const ShellContentClient&) = delete;
  15. ~ShellContentClient() override;
  16. void AddPepperPlugins(
  17. std::vector<content::PepperPluginInfo>* plugins) override;
  18. void AddAdditionalSchemes(Schemes* schemes) override;
  19. std::u16string GetLocalizedString(int message_id) override;
  20. base::StringPiece GetDataResource(
  21. int resource_id,
  22. ui::ResourceScaleFactor scale_factor) override;
  23. base::RefCountedMemory* GetDataResourceBytes(int resource_id) override;
  24. gfx::Image& GetNativeImageNamed(int resource_id) override;
  25. };
  26. } // namespace extensions
  27. #endif // EXTENSIONS_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_