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

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

Issue 2389473002: Media Remoting: Add RemotingController. (Closed)
Patch Set: Rebased. Created 4 years, 2 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"
14 #include "media/base/media_observer.h"
13 #include "media/blink/media_blink_export.h" 15 #include "media/blink/media_blink_export.h"
14 #include "media/filters/context_3d.h" 16 #include "media/filters/context_3d.h"
15 17
16 namespace base { 18 namespace base {
17 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
18 class TaskRunner; 20 class TaskRunner;
19 } 21 }
20 22
21 namespace blink { 23 namespace blink {
22 class WebContentDecryptionModule; 24 class WebContentDecryptionModule;
(...skipping 25 matching lines...) Expand all
48 WebMediaPlayerParams( 50 WebMediaPlayerParams(
49 const DeferLoadCB& defer_load_cb, 51 const DeferLoadCB& defer_load_cb,
50 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink, 52 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink,
51 const scoped_refptr<MediaLog>& media_log, 53 const scoped_refptr<MediaLog>& media_log,
52 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 54 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
53 const scoped_refptr<base::TaskRunner>& worker_task_runner, 55 const scoped_refptr<base::TaskRunner>& worker_task_runner,
54 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, 56 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
55 const Context3DCB& context_3d, 57 const Context3DCB& context_3d,
56 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb, 58 const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
57 blink::WebContentDecryptionModule* initial_cdm, 59 blink::WebContentDecryptionModule* initial_cdm,
58 SurfaceManager* surface_manager); 60 SurfaceManager* surface_manager,
61 base::WeakPtr<MediaObserver> media_observer);
59 62
60 ~WebMediaPlayerParams(); 63 ~WebMediaPlayerParams();
61 64
62 DeferLoadCB defer_load_cb() const { return defer_load_cb_; } 65 DeferLoadCB defer_load_cb() const { return defer_load_cb_; }
63 66
64 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink() 67 const scoped_refptr<SwitchableAudioRendererSink>& audio_renderer_sink()
65 const { 68 const {
66 return audio_renderer_sink_; 69 return audio_renderer_sink_;
67 } 70 }
68 71
(...skipping 19 matching lines...) Expand all
88 blink::WebContentDecryptionModule* initial_cdm() const { 91 blink::WebContentDecryptionModule* initial_cdm() const {
89 return initial_cdm_; 92 return initial_cdm_;
90 } 93 }
91 94
92 AdjustAllocatedMemoryCB adjust_allocated_memory_cb() const { 95 AdjustAllocatedMemoryCB adjust_allocated_memory_cb() const {
93 return adjust_allocated_memory_cb_; 96 return adjust_allocated_memory_cb_;
94 } 97 }
95 98
96 SurfaceManager* surface_manager() const { return surface_manager_; } 99 SurfaceManager* surface_manager() const { return surface_manager_; }
97 100
101 base::WeakPtr<MediaObserver> media_observer() const {
102 return media_observer_;
103 }
104
98 private: 105 private:
99 DeferLoadCB defer_load_cb_; 106 DeferLoadCB defer_load_cb_;
100 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_; 107 scoped_refptr<SwitchableAudioRendererSink> audio_renderer_sink_;
101 scoped_refptr<MediaLog> media_log_; 108 scoped_refptr<MediaLog> media_log_;
102 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_; 109 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
103 scoped_refptr<base::TaskRunner> worker_task_runner_; 110 scoped_refptr<base::TaskRunner> worker_task_runner_;
104 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 111 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
105 Context3DCB context_3d_cb_; 112 Context3DCB context_3d_cb_;
106 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_; 113 AdjustAllocatedMemoryCB adjust_allocated_memory_cb_;
107 114
108 blink::WebContentDecryptionModule* initial_cdm_; 115 blink::WebContentDecryptionModule* initial_cdm_;
109 SurfaceManager* surface_manager_; 116 SurfaceManager* surface_manager_;
117 base::WeakPtr<MediaObserver> media_observer_;
110 118
111 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams); 119 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
112 }; 120 };
113 121
114 } // namespace media 122 } // namespace media
115 123
116 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_PARAMS_H_ 124 #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