OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
6 // It contains Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline which is the actual media player pipeline, it glues |
7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
8 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline would creates multiple threads and access some public methods |
9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
10 // methods and members. | 10 // methods and members. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 WebMediaPlayerImpl(WebKit::WebFrame* frame, | 102 WebMediaPlayerImpl(WebKit::WebFrame* frame, |
103 WebKit::WebMediaPlayerClient* client, | 103 WebKit::WebMediaPlayerClient* client, |
104 base::WeakPtr<WebMediaPlayerDelegate> delegate, | 104 base::WeakPtr<WebMediaPlayerDelegate> delegate, |
105 media::FilterCollection* collection, | 105 media::FilterCollection* collection, |
106 WebKit::WebAudioSourceProvider* audio_source_provider, | 106 WebKit::WebAudioSourceProvider* audio_source_provider, |
107 media::MessageLoopFactory* message_loop_factory, | 107 media::MessageLoopFactory* message_loop_factory, |
108 MediaStreamClient* media_stream_client, | 108 MediaStreamClient* media_stream_client, |
109 media::MediaLog* media_log); | 109 media::MediaLog* media_log); |
110 virtual ~WebMediaPlayerImpl(); | 110 virtual ~WebMediaPlayerImpl(); |
111 | 111 |
| 112 // TODO(fischman): remove the single-param version once WebKit stops calling |
| 113 // it. |
112 virtual void load(const WebKit::WebURL& url); | 114 virtual void load(const WebKit::WebURL& url); |
| 115 virtual void load(const WebKit::WebURL& url, CORSMode cors_mode); |
113 virtual void cancelLoad(); | 116 virtual void cancelLoad(); |
114 | 117 |
115 // Playback controls. | 118 // Playback controls. |
116 virtual void play(); | 119 virtual void play(); |
117 virtual void pause(); | 120 virtual void pause(); |
118 virtual bool supportsFullscreen() const; | 121 virtual bool supportsFullscreen() const; |
119 virtual bool supportsSave() const; | 122 virtual bool supportsSave() const; |
120 virtual void seek(float seconds); | 123 virtual void seek(float seconds); |
121 virtual void setEndTime(float seconds); | 124 virtual void setEndTime(float seconds); |
122 virtual void setRate(float rate); | 125 virtual void setRate(float rate); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 328 |
326 // TODO(fischman): see TODO on bytesLoaded() above. | 329 // TODO(fischman): see TODO on bytesLoaded() above. |
327 mutable uint64 fake_bytes_loaded_; | 330 mutable uint64 fake_bytes_loaded_; |
328 | 331 |
329 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 332 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
330 }; | 333 }; |
331 | 334 |
332 } // namespace webkit_media | 335 } // namespace webkit_media |
333 | 336 |
334 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 337 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |