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