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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, | 78 const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner, |
79 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 79 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
80 const scoped_refptr<base::TaskRunner>& worker_task_runner, | 80 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
81 media::GpuVideoAcceleratorFactories* gpu_factories, | 81 media::GpuVideoAcceleratorFactories* gpu_factories, |
82 const blink::WebString& sink_id, | 82 const blink::WebString& sink_id, |
83 const blink::WebSecurityOrigin& security_origin); | 83 const blink::WebSecurityOrigin& security_origin); |
84 | 84 |
85 ~WebMediaPlayerMS() override; | 85 ~WebMediaPlayerMS() override; |
86 | 86 |
87 void load(LoadType load_type, | 87 void load(LoadType load_type, |
88 const blink::WebURL& url, | 88 const blink::WebMediaPlayerSource& source, |
89 CORSMode cors_mode) override; | 89 CORSMode cors_mode) override; |
90 | 90 |
91 // Playback controls. | 91 // Playback controls. |
92 void play() override; | 92 void play() override; |
93 void pause() override; | 93 void pause() override; |
94 bool supportsSave() const override; | 94 bool supportsSave() const override; |
95 void seek(double seconds) override; | 95 void seek(double seconds) override; |
96 void setRate(double rate) override; | 96 void setRate(double rate) override; |
97 void setVolume(double volume) override; | 97 void setVolume(double volume) override; |
98 void setSinkId(const blink::WebString& sink_id, | 98 void setSinkId(const blink::WebString& sink_id, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // True if playback should be started upon the next call to OnShown(). Only | 231 // True if playback should be started upon the next call to OnShown(). Only |
232 // used on Android. | 232 // used on Android. |
233 bool should_play_upon_shown_; | 233 bool should_play_upon_shown_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 235 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace content | 238 } // namespace content |
239 | 239 |
240 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 240 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |