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, | |
116 CrossOriginAttribute cross_origin_attribute); | |
scherkus (not reviewing)
2012/06/06 00:44:36
is this a WK::COA or a BRL::COA?
I'm assuming a W
| |
113 virtual void cancelLoad(); | 117 virtual void cancelLoad(); |
114 | 118 |
115 // Playback controls. | 119 // Playback controls. |
116 virtual void play(); | 120 virtual void play(); |
117 virtual void pause(); | 121 virtual void pause(); |
118 virtual bool supportsFullscreen() const; | 122 virtual bool supportsFullscreen() const; |
119 virtual bool supportsSave() const; | 123 virtual bool supportsSave() const; |
120 virtual void seek(float seconds); | 124 virtual void seek(float seconds); |
121 virtual void setEndTime(float seconds); | 125 virtual void setEndTime(float seconds); |
122 virtual void setRate(float rate); | 126 virtual void setRate(float rate); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 | 329 |
326 // TODO(fischman): see TODO on bytesLoaded() above. | 330 // TODO(fischman): see TODO on bytesLoaded() above. |
327 mutable uint64 fake_bytes_loaded_; | 331 mutable uint64 fake_bytes_loaded_; |
328 | 332 |
329 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 333 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
330 }; | 334 }; |
331 | 335 |
332 } // namespace webkit_media | 336 } // namespace webkit_media |
333 | 337 |
334 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 338 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |