Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: webkit/glue/webmediaplayer_impl.h

Issue 6625059: Implementing preload=metadata for video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup defer strategy, fix logic bug Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Playback controls. 201 // Playback controls.
202 virtual void play(); 202 virtual void play();
203 virtual void pause(); 203 virtual void pause();
204 virtual bool supportsFullscreen() const; 204 virtual bool supportsFullscreen() const;
205 virtual bool supportsSave() const; 205 virtual bool supportsSave() const;
206 virtual void seek(float seconds); 206 virtual void seek(float seconds);
207 virtual void setEndTime(float seconds); 207 virtual void setEndTime(float seconds);
208 virtual void setRate(float rate); 208 virtual void setRate(float rate);
209 virtual void setVolume(float volume); 209 virtual void setVolume(float volume);
210 virtual void setVisible(bool visible); 210 virtual void setVisible(bool visible);
211 virtual bool setAutoBuffer(bool autoBuffer); 211 virtual bool setPreload(WebKit::WebMediaPlayer::Preload preload);
212 virtual bool totalBytesKnown(); 212 virtual bool totalBytesKnown();
213 virtual const WebKit::WebTimeRanges& buffered(); 213 virtual const WebKit::WebTimeRanges& buffered();
214 virtual float maxTimeSeekable() const; 214 virtual float maxTimeSeekable() const;
215 215
216 // Methods for painting. 216 // Methods for painting.
217 virtual void setSize(const WebKit::WebSize& size); 217 virtual void setSize(const WebKit::WebSize& size);
218 218
219 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); 219 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
220 220
221 // True if the loaded media has a playable video/audio track. 221 // True if the loaded media has a playable video/audio track.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 #if WEBKIT_USING_CG 327 #if WEBKIT_USING_CG
328 scoped_ptr<skia::PlatformCanvas> skia_canvas_; 328 scoped_ptr<skia::PlatformCanvas> skia_canvas_;
329 #endif 329 #endif
330 330
331 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 331 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
332 }; 332 };
333 333
334 } // namespace webkit_glue 334 } // namespace webkit_glue
335 335
336 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 336 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698