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

Side by Side Diff: webkit/media/buffered_data_source.h

Issue 9854031: Replace size_t with int in a few media classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
« no previous file with comments | « media/tools/player_x11/data_source_logger.cc ('k') | webkit/media/buffered_data_source.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ 5 #ifndef WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_
6 #define WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ 6 #define WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 18 matching lines...) Expand all
29 media::MediaLog* media_log); 29 media::MediaLog* media_log);
30 30
31 virtual ~BufferedDataSource(); 31 virtual ~BufferedDataSource();
32 32
33 // media::DataSource implementation. 33 // media::DataSource implementation.
34 // Called from demuxer thread. 34 // Called from demuxer thread.
35 virtual void set_host(media::DataSourceHost* host) OVERRIDE; 35 virtual void set_host(media::DataSourceHost* host) OVERRIDE;
36 virtual void Stop(const base::Closure& closure) OVERRIDE; 36 virtual void Stop(const base::Closure& closure) OVERRIDE;
37 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; 37 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
38 38
39 virtual void Read( 39 virtual void Read(int64 position, int size, uint8* data,
40 int64 position, 40 const media::DataSource::ReadCB& read_cb) OVERRIDE;
41 size_t size,
42 uint8* data,
43 const media::DataSource::ReadCB& read_cb) OVERRIDE;
44 virtual bool GetSize(int64* size_out) OVERRIDE; 41 virtual bool GetSize(int64* size_out) OVERRIDE;
45 virtual bool IsStreaming() OVERRIDE; 42 virtual bool IsStreaming() OVERRIDE;
46 virtual void SetPreload(media::Preload preload) OVERRIDE; 43 virtual void SetPreload(media::Preload preload) OVERRIDE;
47 virtual void SetBitrate(int bitrate) OVERRIDE; 44 virtual void SetBitrate(int bitrate) OVERRIDE;
48 45
49 // webkit_glue::WebDataSource implementation. 46 // webkit_glue::WebDataSource implementation.
50 virtual void Initialize( 47 virtual void Initialize(
51 const GURL& url, const media::PipelineStatusCB& initialize_cb) OVERRIDE; 48 const GURL& url, const media::PipelineStatusCB& initialize_cb) OVERRIDE;
52 virtual bool HasSingleOrigin() OVERRIDE; 49 virtual bool HasSingleOrigin() OVERRIDE;
53 virtual void Abort() OVERRIDE; 50 virtual void Abort() OVERRIDE;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 float playback_rate_; 203 float playback_rate_;
207 204
208 scoped_refptr<media::MediaLog> media_log_; 205 scoped_refptr<media::MediaLog> media_log_;
209 206
210 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); 207 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource);
211 }; 208 };
212 209
213 } // namespace webkit_media 210 } // namespace webkit_media
214 211
215 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_ 212 #endif // WEBKIT_MEDIA_BUFFERED_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « media/tools/player_x11/data_source_logger.cc ('k') | webkit/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698