OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
12 | 12 |
13 namespace network_hints { | 13 namespace network_hints { |
14 class PrescientNetworkingDispatcher; | 14 class PrescientNetworkingDispatcher; |
15 } // namespace network_hints | 15 } // namespace network_hints |
16 | 16 |
17 namespace chromecast { | 17 namespace chromecast { |
18 namespace shell { | 18 namespace shell { |
19 class CastRenderProcessObserver; | 19 class CastRenderProcessObserver; |
20 | 20 |
| 21 void PlatformAddRendererNativeBindings(blink::WebLocalFrame* frame); |
| 22 |
21 class CastContentRendererClient : public content::ContentRendererClient { | 23 class CastContentRendererClient : public content::ContentRendererClient { |
22 public: | 24 public: |
23 CastContentRendererClient(); | 25 CastContentRendererClient(); |
24 ~CastContentRendererClient() override; | 26 ~CastContentRendererClient() override; |
25 | 27 |
26 // ContentRendererClient implementation: | 28 // ContentRendererClient implementation: |
27 void RenderThreadStarted() override; | 29 void RenderThreadStarted() override; |
28 void RenderViewCreated(content::RenderView* render_view) override; | 30 void RenderViewCreated(content::RenderView* render_view) override; |
29 void AddKeySystems( | 31 void AddKeySystems( |
30 std::vector< ::media::KeySystemInfo>* key_systems) override; | 32 std::vector< ::media::KeySystemInfo>* key_systems) override; |
(...skipping 10 matching lines...) Expand all Loading... |
41 prescient_networking_dispatcher_; | 43 prescient_networking_dispatcher_; |
42 scoped_ptr<CastRenderProcessObserver> cast_observer_; | 44 scoped_ptr<CastRenderProcessObserver> cast_observer_; |
43 | 45 |
44 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); | 46 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); |
45 }; | 47 }; |
46 | 48 |
47 } // namespace shell | 49 } // namespace shell |
48 } // namespace chromecast | 50 } // namespace chromecast |
49 | 51 |
50 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 52 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |