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

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

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: rebased Created 3 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
« 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "media/base/media_log.h" 15 #include "media/base/media_log.h"
16 #include "media/base/media_observer.h" 16 #include "media/base/media_observer.h"
17 #include "media/base/routing_token_callback.h"
17 #include "media/blink/media_blink_export.h" 18 #include "media/blink/media_blink_export.h"
18 #include "media/filters/context_3d.h" 19 #include "media/filters/context_3d.h"
19 20
20 namespace base { 21 namespace base {
21 class SingleThreadTaskRunner; 22 class SingleThreadTaskRunner;
22 class TaskRunner; 23 class TaskRunner;
23 } 24 }
24 25
25 namespace blink { 26 namespace blink {
26 class WebContentDecryptionModule; 27 class WebContentDecryptionModule;
(...skipping 24 matching lines...) Expand all
51 std::unique_ptr<MediaLog> media_log, 52 std::unique_ptr<MediaLog> media_log,
52 const DeferLoadCB& defer_load_cb, 53 const DeferLoadCB& defer_load_cb,
53 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink, 54 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink,
54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 55 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
55 const scoped_refptr<base::TaskRunner>& worker_task_runner, 56 const scoped_refptr<base::TaskRunner>& worker_task_runner,
56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 57 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
57 const Context3DCB& context_3d, 58 const Context3DCB& context_3d,
58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, 59 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
59 blink::WebContentDecryptionModule* initial_cdm, 60 blink::WebContentDecryptionModule* initial_cdm,
60 SurfaceManager* surface_manager, 61 SurfaceManager* surface_manager,
62 RequestRoutingTokenCallback request_routing_token_cb,
61 base::WeakPtr<MediaObserver> media_observer, 63 base::WeakPtr<MediaObserver> media_observer,
62 base::TimeDelta max_keyframe_distance_to_disable_background_video, 64 base::TimeDelta max_keyframe_distance_to_disable_background_video,
63 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse, 65 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse,
64 bool enable_instant_source_buffer_gc, 66 bool enable_instant_source_buffer_gc,
65 bool allow_suspend, 67 bool allow_suspend,
66 bool embedded_media_experience_enabled); 68 bool embedded_media_experience_enabled);
67 69
68 ~WebMediaPlayerParams(); 70 ~WebMediaPlayerParams();
69 71
70 DeferLoadCB defer_load_cb() const { return defer_load_cb_; } 72 DeferLoadCB defer_load_cb() const { return defer_load_cb_; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool enable_instant_source_buffer_gc() const { 119 bool enable_instant_source_buffer_gc() const {
118 return enable_instant_source_buffer_gc_; 120 return enable_instant_source_buffer_gc_;
119 } 121 }
120 122
121 bool allow_suspend() const { return allow_suspend_; } 123 bool allow_suspend() const { return allow_suspend_; }
122 124
123 bool embedded_media_experience_enabled() const { 125 bool embedded_media_experience_enabled() const {
124 return embedded_media_experience_enabled_; 126 return embedded_media_experience_enabled_;
125 } 127 }
126 128
129 RequestRoutingTokenCallback request_routing_token_cb() {
130 return request_routing_token_cb_;
131 }
132
127 private: 133 private:
128 DeferLoadCB defer_load_cb_; 134 DeferLoadCB defer_load_cb_;
129 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_; 135 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
130 std::unique_ptr<MediaLog> media_log_; 136 std::unique_ptr<MediaLog> media_log_;
131 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 137 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
132 scoped_refptr<base::TaskRunner> worker_task_runner_; 138 scoped_refptr<base::TaskRunner> worker_task_runner_;
133 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 139 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
134 Context3DCB context_3d_cb_; 140 Context3DCB context_3d_cb_;
135 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_; 141 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_;
136 142
137 blink::WebContentDecryptionModule* initial_cdm_; 143 blink::WebContentDecryptionModule* initial_cdm_;
138 SurfaceManager* surface_manager_; 144 SurfaceManager* surface_manager_;
145 RequestRoutingTokenCallback request_routing_token_cb_;
139 base::WeakPtr<MediaObserver> media_observer_; 146 base::WeakPtr<MediaObserver> media_observer_;
140 base::TimeDelta max_keyframe_distance_to_disable_background_video_; 147 base::TimeDelta max_keyframe_distance_to_disable_background_video_;
141 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_; 148 base::TimeDelta max_keyframe_distance_to_disable_background_video_mse_;
142 bool enable_instant_source_buffer_gc_; 149 bool enable_instant_source_buffer_gc_;
143 const bool allow_suspend_; 150 const bool allow_suspend_;
144 const bool embedded_media_experience_enabled_; 151 const bool embedded_media_experience_enabled_;
145 152
146 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 153 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
147 }; 154 };
148 155
149 } // namespace media 156 } // namespace media
150 157
151 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 158 #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