| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "build/build_config.h" |
| 11 #include "content/public/renderer/content_renderer_client.h" | 12 #include "content/public/renderer/content_renderer_client.h" |
| 12 | 13 |
| 13 namespace web_cache { | 14 namespace web_cache { |
| 14 class WebCacheImpl; | 15 class WebCacheImpl; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 | 19 |
| 19 class ShellContentRendererClient : public ContentRendererClient { | 20 class ShellContentRendererClient : public ContentRendererClient { |
| 20 public: | 21 public: |
| 21 ShellContentRendererClient(); | 22 ShellContentRendererClient(); |
| 22 ~ShellContentRendererClient() override; | 23 ~ShellContentRendererClient() override; |
| 23 | 24 |
| 24 // ContentRendererClient implementation. | 25 // ContentRendererClient implementation. |
| 25 void RenderThreadStarted() override; | 26 void RenderThreadStarted() override; |
| 26 void RenderViewCreated(RenderView* render_view) override; | 27 void RenderViewCreated(RenderView* render_view) override; |
| 27 | 28 |
| 28 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we | 29 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we |
| 29 // need that outside of layout tests? | 30 // need that outside of layout tests? |
| 30 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; | 31 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; |
| 31 bool IsPluginAllowedToUseDevChannelAPIs() override; | 32 bool IsPluginAllowedToUseDevChannelAPIs() override; |
| 32 | 33 |
| 33 void DidInitializeWorkerContextOnWorkerThread( | 34 void DidInitializeWorkerContextOnWorkerThread( |
| 34 v8::Local<v8::Context> context) override; | 35 v8::Local<v8::Context> context) override; |
| 35 | 36 |
| 36 void ExposeInterfacesToBrowser( | 37 void ExposeInterfacesToBrowser( |
| 37 shell::InterfaceRegistry* interface_registry) override; | 38 shell::InterfaceRegistry* interface_registry) override; |
| 38 | 39 |
| 40 #if defined(OS_ANDROID) |
| 41 void AddSupportedKeySystems( |
| 42 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) |
| 43 override; |
| 44 #endif |
| 45 |
| 39 private: | 46 private: |
| 40 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | 47 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; |
| 41 }; | 48 }; |
| 42 | 49 |
| 43 } // namespace content | 50 } // namespace content |
| 44 | 51 |
| 45 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 52 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |