| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 // Creates an implementation of CastContentRendererClient. Platform should | 27 // Creates an implementation of CastContentRendererClient. Platform should |
| 28 // link in an implementation as needed. | 28 // link in an implementation as needed. |
| 29 static scoped_ptr<CastContentRendererClient> Create(); | 29 static scoped_ptr<CastContentRendererClient> Create(); |
| 30 | 30 |
| 31 ~CastContentRendererClient() override; | 31 ~CastContentRendererClient() override; |
| 32 | 32 |
| 33 // Adds any platform-specific bindings to the current frame. | 33 // Adds any platform-specific bindings to the current frame. |
| 34 virtual void AddRendererNativeBindings(blink::WebLocalFrame* frame); | 34 virtual void AddRendererNativeBindings(blink::WebLocalFrame* frame); |
| 35 | 35 |
| 36 // Returns any MessageFilters from the platform implementation that should | |
| 37 // be added to the render process. | |
| 38 virtual std::vector<scoped_refptr<IPC::MessageFilter>> | |
| 39 GetRendererMessageFilters(); | |
| 40 | |
| 41 // ContentRendererClient implementation: | 36 // ContentRendererClient implementation: |
| 42 void RenderThreadStarted() override; | 37 void RenderThreadStarted() override; |
| 43 void RenderViewCreated(content::RenderView* render_view) override; | 38 void RenderViewCreated(content::RenderView* render_view) override; |
| 44 void AddKeySystems( | 39 void AddKeySystems( |
| 45 std::vector< ::media::KeySystemInfo>* key_systems) override; | 40 std::vector< ::media::KeySystemInfo>* key_systems) override; |
| 46 #if !defined(OS_ANDROID) | 41 #if !defined(OS_ANDROID) |
| 47 scoped_ptr<::media::RendererFactory> CreateMediaRendererFactory( | 42 scoped_ptr<::media::RendererFactory> CreateMediaRendererFactory( |
| 48 content::RenderFrame* render_frame, | 43 content::RenderFrame* render_frame, |
| 49 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories, | 44 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories, |
| 50 const scoped_refptr<::media::MediaLog>& media_log) override; | 45 const scoped_refptr<::media::MediaLog>& media_log) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 prescient_networking_dispatcher_; | 57 prescient_networking_dispatcher_; |
| 63 scoped_ptr<CastRenderProcessObserver> cast_observer_; | 58 scoped_ptr<CastRenderProcessObserver> cast_observer_; |
| 64 | 59 |
| 65 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); | 60 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); |
| 66 }; | 61 }; |
| 67 | 62 |
| 68 } // namespace shell | 63 } // namespace shell |
| 69 } // namespace chromecast | 64 } // namespace chromecast |
| 70 | 65 |
| 71 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 66 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |