| OLD | NEW |
| 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // 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 PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl 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 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 WebMediaPlayerImpl(WebKit::WebMediaPlayerClient* client, | 149 WebMediaPlayerImpl(WebKit::WebMediaPlayerClient* client, |
| 150 media::FilterFactoryCollection* factory); | 150 media::FilterFactoryCollection* factory); |
| 151 virtual ~WebMediaPlayerImpl(); | 151 virtual ~WebMediaPlayerImpl(); |
| 152 | 152 |
| 153 virtual void load(const WebKit::WebURL& url); | 153 virtual void load(const WebKit::WebURL& url); |
| 154 virtual void cancelLoad(); | 154 virtual void cancelLoad(); |
| 155 | 155 |
| 156 // Playback controls. | 156 // Playback controls. |
| 157 virtual void play(); | 157 virtual void play(); |
| 158 virtual void pause(); | 158 virtual void pause(); |
| 159 virtual bool supportsFullscreen() const; |
| 160 virtual bool supportsSave() const; |
| 159 virtual void seek(float seconds); | 161 virtual void seek(float seconds); |
| 160 virtual void setEndTime(float seconds); | 162 virtual void setEndTime(float seconds); |
| 161 virtual void setRate(float rate); | 163 virtual void setRate(float rate); |
| 162 virtual void setVolume(float volume); | 164 virtual void setVolume(float volume); |
| 163 virtual void setVisible(bool visible); | 165 virtual void setVisible(bool visible); |
| 164 virtual bool setAutoBuffer(bool autoBuffer); | 166 virtual bool setAutoBuffer(bool autoBuffer); |
| 165 virtual bool totalBytesKnown(); | 167 virtual bool totalBytesKnown(); |
| 166 virtual float maxTimeBuffered() const; | 168 virtual float maxTimeBuffered() const; |
| 167 virtual float maxTimeSeekable() const; | 169 virtual float maxTimeSeekable() const; |
| 168 | 170 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 WebKit::WebMediaPlayerClient* client_; | 252 WebKit::WebMediaPlayerClient* client_; |
| 251 | 253 |
| 252 scoped_refptr<Proxy> proxy_; | 254 scoped_refptr<Proxy> proxy_; |
| 253 | 255 |
| 254 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 256 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 255 }; | 257 }; |
| 256 | 258 |
| 257 } // namespace webkit_glue | 259 } // namespace webkit_glue |
| 258 | 260 |
| 259 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 261 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |