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

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

Issue 7074018: Implement Chromium version of WebCore::MediaPlayer::mediaTimeForTimeValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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
« no previous file with comments | « no previous file | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // them from members which would cause race conditions. 239 // them from members which would cause race conditions.
240 virtual WebKit::WebMediaPlayer::NetworkState networkState() const; 240 virtual WebKit::WebMediaPlayer::NetworkState networkState() const;
241 virtual WebKit::WebMediaPlayer::ReadyState readyState() const; 241 virtual WebKit::WebMediaPlayer::ReadyState readyState() const;
242 242
243 virtual unsigned long long bytesLoaded() const; 243 virtual unsigned long long bytesLoaded() const;
244 virtual unsigned long long totalBytes() const; 244 virtual unsigned long long totalBytes() const;
245 245
246 virtual bool hasSingleSecurityOrigin() const; 246 virtual bool hasSingleSecurityOrigin() const;
247 virtual WebKit::WebMediaPlayer::MovieLoadType movieLoadType() const; 247 virtual WebKit::WebMediaPlayer::MovieLoadType movieLoadType() const;
248 248
249 virtual float mediaTimeForTimeValue(float timeValue) const;
250
249 virtual unsigned decodedFrameCount() const; 251 virtual unsigned decodedFrameCount() const;
250 virtual unsigned droppedFrameCount() const; 252 virtual unsigned droppedFrameCount() const;
251 virtual unsigned audioDecodedByteCount() const; 253 virtual unsigned audioDecodedByteCount() const;
252 virtual unsigned videoDecodedByteCount() const; 254 virtual unsigned videoDecodedByteCount() const;
253 255
254 virtual WebKit::WebVideoFrame* getCurrentFrame(); 256 virtual WebKit::WebVideoFrame* getCurrentFrame();
255 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame); 257 virtual void putCurrentFrame(WebKit::WebVideoFrame* web_video_frame);
256 258
257 // As we are closing the tab or even the browser, |main_loop_| is destroyed 259 // As we are closing the tab or even the browser, |main_loop_| is destroyed
258 // even before this object gets destructed, so we need to know when 260 // even before this object gets destructed, so we need to know when
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 #if WEBKIT_USING_CG 329 #if WEBKIT_USING_CG
328 scoped_ptr<skia::PlatformCanvas> skia_canvas_; 330 scoped_ptr<skia::PlatformCanvas> skia_canvas_;
329 #endif 331 #endif
330 332
331 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 333 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
332 }; 334 };
333 335
334 } // namespace webkit_glue 336 } // namespace webkit_glue
335 337
336 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 338 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698