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

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

Issue 2728133002: Media Controls: make the MediaControlsOverlayPlayButton a runtime enabled flag. (Closed)
Patch Set: Created 3 years, 9 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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 void RenderThreadStarted() override; 36 void RenderThreadStarted() override;
37 void RenderViewCreated(content::RenderView* render_view) override; 37 void RenderViewCreated(content::RenderView* render_view) override;
38 void AddSupportedKeySystems( 38 void AddSupportedKeySystems(
39 std::vector<std::unique_ptr<::media::KeySystemProperties>>* 39 std::vector<std::unique_ptr<::media::KeySystemProperties>>*
40 key_systems_properties) override; 40 key_systems_properties) override;
41 blink::WebPrescientNetworking* GetPrescientNetworking() override; 41 blink::WebPrescientNetworking* GetPrescientNetworking() override;
42 void DeferMediaLoad(content::RenderFrame* render_frame, 42 void DeferMediaLoad(content::RenderFrame* render_frame,
43 bool render_frame_has_played_media_before, 43 bool render_frame_has_played_media_before,
44 const base::Closure& closure) override; 44 const base::Closure& closure) override;
45 bool AllowMediaSuspend() override; 45 bool AllowMediaSuspend() override;
46 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override;
46 47
47 protected: 48 protected:
48 CastContentRendererClient(); 49 CastContentRendererClient();
49 50
50 virtual void RunWhenInForeground(content::RenderFrame* render_frame, 51 virtual void RunWhenInForeground(content::RenderFrame* render_frame,
51 const base::Closure& closure); 52 const base::Closure& closure);
52 53
53 private: 54 private:
54 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 55 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
55 prescient_networking_dispatcher_; 56 prescient_networking_dispatcher_;
56 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; 57 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_;
57 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_; 58 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_;
58 59
59 const bool allow_hidden_media_playback_; 60 const bool allow_hidden_media_playback_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 62 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
62 }; 63 };
63 64
64 } // namespace shell 65 } // namespace shell
65 } // namespace chromecast 66 } // namespace chromecast
66 67
67 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 68 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698