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

Side by Side Diff: webkit/glue/media/simple_data_source.h

Issue 160076: BufferedDataSource to support server without range request support... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // An extremely simple implementation of DataSource that downloads the entire 5 // An extremely simple implementation of DataSource that downloads the entire
6 // media resource into memory before signaling that initialization has finished. 6 // media resource into memory before signaling that initialization has finished.
7 // Primarily used to test <audio> and <video> with buffering/caching removed 7 // Primarily used to test <audio> and <video> with buffering/caching removed
8 // from the equation. 8 // from the equation.
9 9
10 #ifndef WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_ 10 #ifndef WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_
(...skipping 26 matching lines...) Expand all
37 // MediaFilter implementation. 37 // MediaFilter implementation.
38 virtual void Stop(); 38 virtual void Stop();
39 39
40 // DataSource implementation. 40 // DataSource implementation.
41 virtual void Initialize(const std::string& url, 41 virtual void Initialize(const std::string& url,
42 media::FilterCallback* callback); 42 media::FilterCallback* callback);
43 virtual const media::MediaFormat& media_format(); 43 virtual const media::MediaFormat& media_format();
44 virtual void Read(int64 position, size_t size, 44 virtual void Read(int64 position, size_t size,
45 uint8* data, ReadCallback* read_callback); 45 uint8* data, ReadCallback* read_callback);
46 virtual bool GetSize(int64* size_out); 46 virtual bool GetSize(int64* size_out);
47 virtual bool IsSeekable(); 47 virtual bool IsStreaming();
48 48
49 // webkit_glue::ResourceLoaderBridge::Peer implementation. 49 // webkit_glue::ResourceLoaderBridge::Peer implementation.
50 virtual void OnDownloadProgress(uint64 position, uint64 size); 50 virtual void OnDownloadProgress(uint64 position, uint64 size);
51 virtual void OnUploadProgress(uint64 position, uint64 size); 51 virtual void OnUploadProgress(uint64 position, uint64 size);
52 virtual void OnReceivedRedirect(const GURL& new_url); 52 virtual void OnReceivedRedirect(const GURL& new_url);
53 virtual void OnReceivedResponse( 53 virtual void OnReceivedResponse(
54 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 54 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
55 bool content_filtered); 55 bool content_filtered);
56 virtual void OnReceivedData(const char* data, int len); 56 virtual void OnReceivedData(const char* data, int len);
57 virtual void OnCompletedRequest(const URLRequestStatus& status, 57 virtual void OnCompletedRequest(const URLRequestStatus& status,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Filter callbacks. 106 // Filter callbacks.
107 scoped_ptr<media::FilterCallback> initialize_callback_; 107 scoped_ptr<media::FilterCallback> initialize_callback_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource); 109 DISALLOW_COPY_AND_ASSIGN(SimpleDataSource);
110 }; 110 };
111 111
112 } // namespace webkit_glue 112 } // namespace webkit_glue
113 113
114 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_ 114 #endif // WEBKIT_GLUE_MEDIA_SIMPLE_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/buffered_data_source_unittest.cc ('k') | webkit/glue/media/simple_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698