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 "build/build_config.h" |
12 #include "content/public/renderer/content_renderer_client.h" | 12 #include "content/public/renderer/content_renderer_client.h" |
| 13 #include "media/mojo/features.h" |
13 | 14 |
14 namespace web_cache { | 15 namespace web_cache { |
15 class WebCacheImpl; | 16 class WebCacheImpl; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class ShellContentRendererClient : public ContentRendererClient { | 21 class ShellContentRendererClient : public ContentRendererClient { |
21 public: | 22 public: |
22 ShellContentRendererClient(); | 23 ShellContentRendererClient(); |
23 ~ShellContentRendererClient() override; | 24 ~ShellContentRendererClient() override; |
24 | 25 |
25 // ContentRendererClient implementation. | 26 // ContentRendererClient implementation. |
26 void RenderThreadStarted() override; | 27 void RenderThreadStarted() override; |
27 void RenderViewCreated(RenderView* render_view) override; | 28 void RenderViewCreated(RenderView* render_view) override; |
28 | 29 |
29 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we | 30 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we |
30 // need that outside of layout tests? | 31 // need that outside of layout tests? |
31 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; | 32 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; |
32 bool IsPluginAllowedToUseDevChannelAPIs() override; | 33 bool IsPluginAllowedToUseDevChannelAPIs() override; |
33 | 34 |
34 void DidInitializeWorkerContextOnWorkerThread( | 35 void DidInitializeWorkerContextOnWorkerThread( |
35 v8::Local<v8::Context> context) override; | 36 v8::Local<v8::Context> context) override; |
36 | 37 |
37 #if defined(ENABLE_MOJO_CDM) | 38 #if BUILDFLAG(ENABLE_MOJO_CDM) |
38 void AddSupportedKeySystems( | 39 void AddSupportedKeySystems( |
39 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) | 40 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) |
40 override; | 41 override; |
41 #endif | 42 #endif |
42 | 43 |
43 private: | 44 private: |
44 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | 45 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; |
45 }; | 46 }; |
46 | 47 |
47 } // namespace content | 48 } // namespace content |
48 | 49 |
49 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 50 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |