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

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

Issue 1927953004: Reland of "Convert Widevine and Android platform key systems to KeySystemProperties" with fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 7 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
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"
(...skipping 17 matching lines...) Expand all
28 // Creates an implementation of CastContentRendererClient. Platform should 28 // Creates an implementation of CastContentRendererClient. Platform should
29 // link in an implementation as needed. 29 // link in an implementation as needed.
30 static std::unique_ptr<CastContentRendererClient> Create(); 30 static std::unique_ptr<CastContentRendererClient> Create();
31 31
32 ~CastContentRendererClient() override; 32 ~CastContentRendererClient() override;
33 33
34 // ContentRendererClient implementation: 34 // ContentRendererClient implementation:
35 void RenderThreadStarted() override; 35 void RenderThreadStarted() override;
36 void RenderViewCreated(content::RenderView* render_view) override; 36 void RenderViewCreated(content::RenderView* render_view) override;
37 void AddKeySystems( 37 void AddKeySystems(
38 std::vector< ::media::KeySystemInfo>* key_systems) override; 38 std::vector<::media::KeySystemInfo>* key_systems_info) override;
39 void AddSupportedKeySystems(
40 std::vector<std::unique_ptr<::media::KeySystemProperties>>*
41 key_systems_properties) override;
39 #if !defined(OS_ANDROID) 42 #if !defined(OS_ANDROID)
40 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory( 43 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory(
41 content::RenderFrame* render_frame, 44 content::RenderFrame* render_frame,
42 ::media::GpuVideoAcceleratorFactories* gpu_factories, 45 ::media::GpuVideoAcceleratorFactories* gpu_factories,
43 const scoped_refptr<::media::MediaLog>& media_log) override; 46 const scoped_refptr<::media::MediaLog>& media_log) override;
44 #endif 47 #endif
45 blink::WebPrescientNetworking* GetPrescientNetworking() override; 48 blink::WebPrescientNetworking* GetPrescientNetworking() override;
46 void DeferMediaLoad(content::RenderFrame* render_frame, 49 void DeferMediaLoad(content::RenderFrame* render_frame,
47 bool render_frame_has_played_media_before, 50 bool render_frame_has_played_media_before,
48 const base::Closure& closure) override; 51 const base::Closure& closure) override;
49 52
50 protected: 53 protected:
51 CastContentRendererClient(); 54 CastContentRendererClient();
52 55
53 private: 56 private:
54 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 57 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
55 prescient_networking_dispatcher_; 58 prescient_networking_dispatcher_;
56 std::unique_ptr<CastRenderThreadObserver> cast_observer_; 59 std::unique_ptr<CastRenderThreadObserver> cast_observer_;
57 const bool allow_hidden_media_playback_; 60 const bool allow_hidden_media_playback_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 62 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
60 }; 63 };
61 64
62 } // namespace shell 65 } // namespace shell
63 } // namespace chromecast 66 } // namespace chromecast
64 67
65 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 68 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/chrome_key_systems.cc ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698