| 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> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
| 10 | 12 |
| 11 namespace dns_prefetch { | 13 namespace dns_prefetch { |
| 12 class PrescientNetworkingDispatcher; | 14 class PrescientNetworkingDispatcher; |
| 13 } // namespace dns_prefetch | 15 } // namespace dns_prefetch |
| 14 | 16 |
| 15 namespace chromecast { | 17 namespace chromecast { |
| 16 namespace shell { | 18 namespace shell { |
| 17 | 19 |
| 18 class CastContentRendererClient : public content::ContentRendererClient { | 20 class CastContentRendererClient : public content::ContentRendererClient { |
| 19 public: | 21 public: |
| 20 CastContentRendererClient(); | 22 CastContentRendererClient(); |
| 21 ~CastContentRendererClient() override; | 23 ~CastContentRendererClient() override; |
| 22 | 24 |
| 23 // ContentRendererClient implementation: | 25 // ContentRendererClient implementation: |
| 24 void RenderThreadStarted() override; | 26 void RenderThreadStarted() override; |
| 25 void RenderViewCreated(content::RenderView* render_view) override; | 27 void RenderViewCreated(content::RenderView* render_view) override; |
| 26 void AddKeySystems( | 28 void AddKeySystems( |
| 27 std::vector< ::media::KeySystemInfo>* key_systems) override; | 29 std::vector< ::media::KeySystemInfo>* key_systems) override; |
| 30 scoped_ptr<media::RendererFactory> CreateMediaRendererFactory( |
| 31 content::RenderFrame* render_frame) override; |
| 28 blink::WebPrescientNetworking* GetPrescientNetworking() override; | 32 blink::WebPrescientNetworking* GetPrescientNetworking() override; |
| 29 | 33 |
| 30 private: | 34 private: |
| 31 scoped_ptr<dns_prefetch::PrescientNetworkingDispatcher> | 35 scoped_ptr<dns_prefetch::PrescientNetworkingDispatcher> |
| 32 prescient_networking_dispatcher_; | 36 prescient_networking_dispatcher_; |
| 33 | 37 |
| 34 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); | 38 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 } // namespace shell | 41 } // namespace shell |
| 38 } // namespace chromecast | 42 } // namespace chromecast |
| 39 | 43 |
| 40 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 44 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |