OLD | NEW |
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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, | 73 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, |
74 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 74 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
75 const scoped_refptr<base::TaskRunner>& worker_task_runner, | 75 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
76 media::GpuVideoAcceleratorFactories* gpu_factories, | 76 media::GpuVideoAcceleratorFactories* gpu_factories, |
77 const blink::WebString& sink_id, | 77 const blink::WebString& sink_id, |
78 const blink::WebSecurityOrigin& security_origin); | 78 const blink::WebSecurityOrigin& security_origin); |
79 | 79 |
80 ~WebMediaPlayerMS() override; | 80 ~WebMediaPlayerMS() override; |
81 | 81 |
82 void load(LoadType load_type, | 82 void load(LoadType load_type, |
83 const blink::WebURL& url, | 83 const blink::WebMediaElementSource& source, |
84 CORSMode cors_mode) override; | 84 CORSMode cors_mode) override; |
85 | 85 |
86 // Playback controls. | 86 // Playback controls. |
87 void play() override; | 87 void play() override; |
88 void pause() override; | 88 void pause() override; |
89 bool supportsSave() const override; | 89 bool supportsSave() const override; |
90 void seek(double seconds) override; | 90 void seek(double seconds) override; |
91 void setRate(double rate) override; | 91 void setRate(double rate) override; |
92 void setVolume(double volume) override; | 92 void setVolume(double volume) override; |
93 void setSinkId(const blink::WebString& sink_id, | 93 void setSinkId(const blink::WebString& sink_id, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // True if playback should be started upon the next call to OnShown(). Only | 227 // True if playback should be started upon the next call to OnShown(). Only |
228 // used on Android. | 228 // used on Android. |
229 bool should_play_upon_shown_; | 229 bool should_play_upon_shown_; |
230 | 230 |
231 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 231 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
232 }; | 232 }; |
233 | 233 |
234 } // namespace content | 234 } // namespace content |
235 | 235 |
236 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 236 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |