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

Side by Side Diff: media/blink/webmediaplayer_params.h

Issue 2818823002: [Media] Add a finch trial param for background MediaSource videos (Closed)
Patch Set: Created 3 years, 8 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 | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const scoped_refptr<MediaLog>& media_log, 53 const scoped_refptr<MediaLog>& media_log,
54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
55 const scoped_refptr<base::TaskRunner>& worker_task_runner, 55 const scoped_refptr<base::TaskRunner>& worker_task_runner,
56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
57 const Context3DCB& context_3d, 57 const Context3DCB& context_3d,
58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, 58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
59 blink::WebContentDecryptionModule* initial_cdm, 59 blink::WebContentDecryptionModule* initial_cdm,
60 SurfaceManager* surface_manager, 60 SurfaceManager* surface_manager,
61 base::WeakPtr<MediaObserver> media_observer, 61 base::WeakPtr<MediaObserver> media_observer,
62 base::TimeDelta max_keyframe_distance_to_disable_background_video, 62 base::TimeDelta max_keyframe_distance_to_disable_background_video,
63 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse,
63 bool enable_instant_source_buffer_gc, 64 bool enable_instant_source_buffer_gc,
64 bool allow_suspend, 65 bool allow_suspend,
65 bool embedded_media_experience_enabled); 66 bool embedded_media_experience_enabled);
66 67
67 ~WebMediaPlayerParams(); 68 ~WebMediaPlayerParams();
68 69
69 DeferLoadCB defer_load_cb() const { return defer_load_cb_; } 70 DeferLoadCB defer_load_cb() const { return defer_load_cb_; }
70 71
71 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink() 72 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink()
72 const { 73 const {
(...skipping 30 matching lines...) Expand all
103 SurfaceManager* surface_manager() const { return surface_manager_; } 104 SurfaceManager* surface_manager() const { return surface_manager_; }
104 105
105 base::WeakPtr<MediaObserver> media_observer() const { 106 base::WeakPtr<MediaObserver> media_observer() const {
106 return media_observer_; 107 return media_observer_;
107 } 108 }
108 109
109 base::TimeDelta max_keyframe_distance_to_disable_background_video() const { 110 base::TimeDelta max_keyframe_distance_to_disable_background_video() const {
110 return max_keyframe_distance_to_disable_background_video_; 111 return max_keyframe_distance_to_disable_background_video_;
111 } 112 }
112 113
114 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse()
115 const {
116 return max_keyframe_distance_to_disable_background_video_mse_;
117 }
118
113 bool enable_instant_source_buffer_gc() const { 119 bool enable_instant_source_buffer_gc() const {
114 return enable_instant_source_buffer_gc_; 120 return enable_instant_source_buffer_gc_;
115 } 121 }
116 122
117 bool allow_suspend() const { return allow_suspend_; } 123 bool allow_suspend() const { return allow_suspend_; }
118 124
119 bool embedded_media_experience_enabled() const { 125 bool embedded_media_experience_enabled() const {
120 return embedded_media_experience_enabled_; 126 return embedded_media_experience_enabled_;
121 } 127 }
122 128
123 private: 129 private:
124 DeferLoadCB defer_load_cb_; 130 DeferLoadCB defer_load_cb_;
125 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_; 131 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
126 scoped_refptr<MediaLog> media_log_; 132 scoped_refptr<MediaLog> media_log_;
127 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 133 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
128 scoped_refptr<base::TaskRunner> worker_task_runner_; 134 scoped_refptr<base::TaskRunner> worker_task_runner_;
129 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 135 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
130 Context3DCB context_3d_cb_; 136 Context3DCB context_3d_cb_;
131 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_; 137 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_;
132 138
133 blink::WebContentDecryptionModule* initial_cdm_; 139 blink::WebContentDecryptionModule* initial_cdm_;
134 SurfaceManager* surface_manager_; 140 SurfaceManager* surface_manager_;
135 base::WeakPtr<MediaObserver> media_observer_; 141 base::WeakPtr<MediaObserver> media_observer_;
136 base::TimeDelta max_keyframe_distance_to_disable_background_video_; 142 base::TimeDelta max_keyframe_distance_to_disable_background_video_;
143 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_;
137 bool enable_instant_source_buffer_gc_; 144 bool enable_instant_source_buffer_gc_;
138 const bool allow_suspend_; 145 const bool allow_suspend_;
139 const bool embedded_media_experience_enabled_; 146 const bool embedded_media_experience_enabled_;
140 147
141 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 148 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
142 }; 149 };
143 150
144 } // namespace media 151 } // namespace media
145 152
146 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 153 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698