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

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

Issue 1932893004: Revert of Convert Widevine and Android platform key systems to KeySystemProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_info) override; 38 std::vector< ::media::KeySystemInfo>* key_systems) override;
39 void AddSupportedKeySystems(
40 std::vector<std::unique_ptr<::media::KeySystemProperties>>*
41 key_systems_properties) override;
42 #if !defined(OS_ANDROID) 39 #if !defined(OS_ANDROID)
43 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory( 40 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory(
44 content::RenderFrame* render_frame, 41 content::RenderFrame* render_frame,
45 ::media::GpuVideoAcceleratorFactories* gpu_factories, 42 ::media::GpuVideoAcceleratorFactories* gpu_factories,
46 const scoped_refptr<::media::MediaLog>& media_log) override; 43 const scoped_refptr<::media::MediaLog>& media_log) override;
47 #endif 44 #endif
48 blink::WebPrescientNetworking* GetPrescientNetworking() override; 45 blink::WebPrescientNetworking* GetPrescientNetworking() override;
49 void DeferMediaLoad(content::RenderFrame* render_frame, 46 void DeferMediaLoad(content::RenderFrame* render_frame,
50 bool render_frame_has_played_media_before, 47 bool render_frame_has_played_media_before,
51 const base::Closure& closure) override; 48 const base::Closure& closure) override;
52 49
53 protected: 50 protected:
54 CastContentRendererClient(); 51 CastContentRendererClient();
55 52
56 private: 53 private:
57 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 54 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
58 prescient_networking_dispatcher_; 55 prescient_networking_dispatcher_;
59 std::unique_ptr<CastRenderThreadObserver> cast_observer_; 56 std::unique_ptr<CastRenderThreadObserver> cast_observer_;
60 const bool allow_hidden_media_playback_; 57 const bool allow_hidden_media_playback_;
61 58
62 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 59 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
63 }; 60 };
64 61
65 } // namespace shell 62 } // namespace shell
66 } // namespace chromecast 63 } // namespace chromecast
67 64
68 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 65 #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