| 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 "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 | 13 |
| 14 namespace IPC { | |
| 15 class MessageFilter; | |
| 16 } | |
| 17 | |
| 18 namespace network_hints { | 14 namespace network_hints { |
| 19 class PrescientNetworkingDispatcher; | 15 class PrescientNetworkingDispatcher; |
| 20 } // namespace network_hints | 16 } // namespace network_hints |
| 21 | 17 |
| 22 namespace chromecast { | 18 namespace chromecast { |
| 23 namespace media { | 19 namespace media { |
| 24 class MediaCapsObserverImpl; | 20 class MediaCapsObserverImpl; |
| 25 } | 21 } |
| 26 | 22 |
| 27 namespace shell { | 23 namespace shell { |
| 28 class CastGinRunner; | |
| 29 class CastRenderThreadObserver; | |
| 30 | 24 |
| 31 void ExecuteJavaScript(content::RenderFrame* render_frame, int resourceId); | 25 void ExecuteJavaScript(content::RenderFrame* render_frame, int resourceId); |
| 32 | 26 |
| 33 class CastContentRendererClient : public content::ContentRendererClient { | 27 class CastContentRendererClient : public content::ContentRendererClient { |
| 34 public: | 28 public: |
| 35 // Creates an implementation of CastContentRendererClient. Platform should | 29 // Creates an implementation of CastContentRendererClient. Platform should |
| 36 // link in an implementation as needed. | 30 // link in an implementation as needed. |
| 37 static std::unique_ptr<CastContentRendererClient> Create(); | 31 static std::unique_ptr<CastContentRendererClient> Create(); |
| 38 | 32 |
| 39 ~CastContentRendererClient() override; | 33 ~CastContentRendererClient() override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 59 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; | 53 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; |
| 60 const bool allow_hidden_media_playback_; | 54 const bool allow_hidden_media_playback_; |
| 61 | 55 |
| 62 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); | 56 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); |
| 63 }; | 57 }; |
| 64 | 58 |
| 65 } // namespace shell | 59 } // namespace shell |
| 66 } // namespace chromecast | 60 } // namespace chromecast |
| 67 | 61 |
| 68 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 62 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |