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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.h

Issue 236023003: Add WebMediaPlayer::timelineOffset() support to WebMediaPlayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 6 years, 8 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 | content/renderer/media/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual bool hasVideo() const; 100 virtual bool hasVideo() const;
101 virtual bool hasAudio() const; 101 virtual bool hasAudio() const;
102 102
103 // Dimensions of the video. 103 // Dimensions of the video.
104 virtual blink::WebSize naturalSize() const; 104 virtual blink::WebSize naturalSize() const;
105 105
106 // Getters of playback state. 106 // Getters of playback state.
107 virtual bool paused() const; 107 virtual bool paused() const;
108 virtual bool seeking() const; 108 virtual bool seeking() const;
109 virtual double duration() const; 109 virtual double duration() const;
110 virtual double timelineOffset() const;
110 virtual double currentTime() const; 111 virtual double currentTime() const;
111 112
112 // Internal states of loading and network. 113 // Internal states of loading and network.
113 // TODO(hclam): Ask the pipeline about the state rather than having reading 114 // TODO(hclam): Ask the pipeline about the state rather than having reading
114 // them from members which would cause race conditions. 115 // them from members which would cause race conditions.
115 virtual blink::WebMediaPlayer::NetworkState networkState() const; 116 virtual blink::WebMediaPlayer::NetworkState networkState() const;
116 virtual blink::WebMediaPlayer::ReadyState readyState() const; 117 virtual blink::WebMediaPlayer::ReadyState readyState() const;
117 118
118 // TODO(sandersd): Change this to non-const in blink::WebMediaPlayer. 119 // TODO(sandersd): Change this to non-const in blink::WebMediaPlayer.
119 // http://crbug.com/360251 120 // http://crbug.com/360251
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 WebContentDecryptionModuleImpl* web_cdm_; 348 WebContentDecryptionModuleImpl* web_cdm_;
348 349
349 media::DecryptorReadyCB decryptor_ready_cb_; 350 media::DecryptorReadyCB decryptor_ready_cb_;
350 351
351 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 352 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
352 }; 353 };
353 354
354 } // namespace content 355 } // namespace content
355 356
356 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 357 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698