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

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

Issue 282073003: Add return-by-value implementations of blink::WebMediaPlayer::buffered() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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_MS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Playback controls. 70 // Playback controls.
71 virtual void play(); 71 virtual void play();
72 virtual void pause(); 72 virtual void pause();
73 virtual bool supportsSave() const; 73 virtual bool supportsSave() const;
74 virtual void seek(double seconds); 74 virtual void seek(double seconds);
75 virtual void setRate(double rate); 75 virtual void setRate(double rate);
76 virtual void setVolume(double volume); 76 virtual void setVolume(double volume);
77 virtual void setPreload(blink::WebMediaPlayer::Preload preload); 77 virtual void setPreload(blink::WebMediaPlayer::Preload preload);
78 virtual const blink::WebTimeRanges& buffered(); 78 virtual const blink::WebTimeRanges& buffered();
79 virtual blink::WebTimeRanges buffered() const;
79 virtual double maxTimeSeekable() const; 80 virtual double maxTimeSeekable() const;
80 81
81 // Methods for painting. 82 // Methods for painting.
82 virtual void paint(blink::WebCanvas* canvas, 83 virtual void paint(blink::WebCanvas* canvas,
83 const blink::WebRect& rect, 84 const blink::WebRect& rect,
84 unsigned char alpha); 85 unsigned char alpha);
85 86
86 // True if the loaded media has a playable video/audio track. 87 // True if the loaded media has a playable video/audio track.
87 virtual bool hasVideo() const; 88 virtual bool hasVideo() const;
88 virtual bool hasAudio() const; 89 virtual bool hasAudio() const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; 191 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_;
191 192
192 scoped_refptr<media::MediaLog> media_log_; 193 scoped_refptr<media::MediaLog> media_log_;
193 194
194 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 195 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
195 }; 196 };
196 197
197 } // namespace content 198 } // namespace content
198 199
199 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 200 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698