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

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

Issue 10837026: Dead member removal, courtesy of Scythe, %/media/% edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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_RESOURCE_LOADER_H_ 5 #ifndef WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_
6 #define WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 6 #define WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
22 class MediaLog; 22 class MediaLog;
23 class SeekableBuffer; 23 class SeekableBuffer;
24 } 24 }
25 25
26 namespace webkit_media { 26 namespace webkit_media {
27 27
28 const int64 kPositionNotSpecified = -1; 28 const int64 kPositionNotSpecified = -1;
29 29
30 const char kHttpScheme[] = "http"; 30 const char kHttpScheme[] = "http";
31 const char kHttpsScheme[] = "https"; 31 const char kHttpsScheme[] = "https";
32 const char kDataScheme[] = "data";
33 32
34 // BufferedResourceLoader is single threaded and must be accessed on the 33 // BufferedResourceLoader is single threaded and must be accessed on the
35 // render thread. It wraps a WebURLLoader and does in-memory buffering, 34 // render thread. It wraps a WebURLLoader and does in-memory buffering,
36 // pausing resource loading when the in-memory buffer is full and resuming 35 // pausing resource loading when the in-memory buffer is full and resuming
37 // resource loading when there is available capacity. 36 // resource loading when there is available capacity.
38 class BufferedResourceLoader : public WebKit::WebURLLoaderClient { 37 class BufferedResourceLoader : public WebKit::WebURLLoaderClient {
39 public: 38 public:
40 // kNeverDefer - Aggresively buffer; never defer loading while paused. 39 // kNeverDefer - Aggresively buffer; never defer loading while paused.
41 // kReadThenDefer - Request only enough data to fulfill read requests. 40 // kReadThenDefer - Request only enough data to fulfill read requests.
42 // kCapacityDefer - Try to keep amount of buffered data at capacity. 41 // kCapacityDefer - Try to keep amount of buffered data at capacity.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 float playback_rate_; 325 float playback_rate_;
327 326
328 scoped_refptr<media::MediaLog> media_log_; 327 scoped_refptr<media::MediaLog> media_log_;
329 328
330 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); 329 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader);
331 }; 330 };
332 331
333 } // namespace webkit_media 332 } // namespace webkit_media
334 333
335 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 334 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | webkit/media/buffered_resource_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698