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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.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_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Playback controls. 82 // Playback controls.
83 virtual void play(); 83 virtual void play();
84 virtual void pause(); 84 virtual void pause();
85 virtual bool supportsSave() const; 85 virtual bool supportsSave() const;
86 virtual void seek(double seconds); 86 virtual void seek(double seconds);
87 virtual void setRate(double rate); 87 virtual void setRate(double rate);
88 virtual void setVolume(double volume); 88 virtual void setVolume(double volume);
89 virtual void setPreload(blink::WebMediaPlayer::Preload preload); 89 virtual void setPreload(blink::WebMediaPlayer::Preload preload);
90 virtual const blink::WebTimeRanges& buffered(); 90 virtual const blink::WebTimeRanges& buffered();
91 virtual blink::WebTimeRanges buffered() const;
91 virtual double maxTimeSeekable() const; 92 virtual double maxTimeSeekable() const;
92 93
93 // Methods for painting. 94 // Methods for painting.
94 virtual void paint(blink::WebCanvas* canvas, 95 virtual void paint(blink::WebCanvas* canvas,
95 const blink::WebRect& rect, 96 const blink::WebRect& rect,
96 unsigned char alpha); 97 unsigned char alpha);
97 98
98 // True if the loaded media has a playable video/audio track. 99 // True if the loaded media has a playable video/audio track.
99 virtual bool hasVideo() const; 100 virtual bool hasVideo() const;
100 virtual bool hasAudio() const; 101 virtual bool hasAudio() const;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 WebContentDecryptionModuleImpl* web_cdm_; 357 WebContentDecryptionModuleImpl* web_cdm_;
357 358
358 media::DecryptorReadyCB decryptor_ready_cb_; 359 media::DecryptorReadyCB decryptor_ready_cb_;
359 360
360 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 361 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
361 }; 362 };
362 363
363 } // namespace content 364 } // namespace content
364 365
365 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 366 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/buffered_data_source_host_impl.cc ('k') | content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698