Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chromecast/renderer/cast_content_renderer_client.h

Issue 2300993003: CmaRenderer is dead. Long live MojoRenderer. (Closed)
Patch Set: update OWNERS file Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/renderer/BUILD.gn ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 14 namespace IPC {
15 class MessageFilter; 15 class MessageFilter;
16 } 16 }
17 17
18 namespace network_hints { 18 namespace network_hints {
19 class PrescientNetworkingDispatcher; 19 class PrescientNetworkingDispatcher;
20 } // namespace network_hints 20 } // namespace network_hints
21 21
22 namespace chromecast { 22 namespace chromecast {
23 namespace media { 23 namespace media {
24 class MediaCapsObserverImpl; 24 class MediaCapsObserverImpl;
25 } 25 }
26 26
27 namespace shell { 27 namespace shell {
28 class CastRenderThreadObserver;
29 28
30 class CastContentRendererClient : public content::ContentRendererClient { 29 class CastContentRendererClient : public content::ContentRendererClient {
31 public: 30 public:
32 // Creates an implementation of CastContentRendererClient. Platform should 31 // Creates an implementation of CastContentRendererClient. Platform should
33 // link in an implementation as needed. 32 // link in an implementation as needed.
34 static std::unique_ptr<CastContentRendererClient> Create(); 33 static std::unique_ptr<CastContentRendererClient> Create();
35 34
36 ~CastContentRendererClient() override; 35 ~CastContentRendererClient() override;
37 36
38 // ContentRendererClient implementation: 37 // ContentRendererClient implementation:
39 void RenderThreadStarted() override; 38 void RenderThreadStarted() override;
40 void RenderViewCreated(content::RenderView* render_view) override; 39 void RenderViewCreated(content::RenderView* render_view) override;
41 void AddSupportedKeySystems( 40 void AddSupportedKeySystems(
42 std::vector<std::unique_ptr<::media::KeySystemProperties>>* 41 std::vector<std::unique_ptr<::media::KeySystemProperties>>*
43 key_systems_properties) override; 42 key_systems_properties) override;
44 #if !defined(OS_ANDROID)
45 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory(
46 content::RenderFrame* render_frame,
47 ::media::GpuVideoAcceleratorFactories* gpu_factories,
48 const scoped_refptr<::media::MediaLog>& media_log) override;
49 #endif
50 blink::WebPrescientNetworking* GetPrescientNetworking() override; 43 blink::WebPrescientNetworking* GetPrescientNetworking() override;
51 void DeferMediaLoad(content::RenderFrame* render_frame, 44 void DeferMediaLoad(content::RenderFrame* render_frame,
52 bool render_frame_has_played_media_before, 45 bool render_frame_has_played_media_before,
53 const base::Closure& closure) override; 46 const base::Closure& closure) override;
54 47
55 protected: 48 protected:
56 CastContentRendererClient(); 49 CastContentRendererClient();
57 50
58 private: 51 private:
59 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 52 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
60 prescient_networking_dispatcher_; 53 prescient_networking_dispatcher_;
61 std::unique_ptr<CastRenderThreadObserver> cast_observer_;
62 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; 54 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_;
63 const bool allow_hidden_media_playback_; 55 const bool allow_hidden_media_playback_;
64 56
65 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 57 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
66 }; 58 };
67 59
68 } // namespace shell 60 } // namespace shell
69 } // namespace chromecast 61 } // namespace chromecast
70 62
71 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 63 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/renderer/BUILD.gn ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698