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

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

Issue 9015015: Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/buffered_resource_loader.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Returns true if the server supports byte range requests. 119 // Returns true if the server supports byte range requests.
120 virtual bool range_supported(); 120 virtual bool range_supported();
121 121
122 // Returns true if the resource loader is currently downloading data. 122 // Returns true if the resource loader is currently downloading data.
123 virtual bool is_downloading_data(); 123 virtual bool is_downloading_data();
124 124
125 // Returns resulting URL. 125 // Returns resulting URL.
126 virtual const GURL& url(); 126 virtual const GURL& url();
127 127
128 // Transfer ownership of an existing WebURLLoader instance for
129 // testing purposes.
130 //
131 // |test_loader| will get used the next time Start() is called. 128 // |test_loader| will get used the next time Start() is called.
132 virtual void SetURLLoaderForTest(WebKit::WebURLLoader* test_loader); 129 virtual void SetURLLoaderForTest(
130 scoped_ptr<WebKit::WebURLLoader> test_loader);
133 131
134 // WebKit::WebURLLoaderClient implementation. 132 // WebKit::WebURLLoaderClient implementation.
135 virtual void willSendRequest( 133 virtual void willSendRequest(
136 WebKit::WebURLLoader* loader, 134 WebKit::WebURLLoader* loader,
137 WebKit::WebURLRequest& newRequest, 135 WebKit::WebURLRequest& newRequest,
138 const WebKit::WebURLResponse& redirectResponse); 136 const WebKit::WebURLResponse& redirectResponse);
139 virtual void didSendData( 137 virtual void didSendData(
140 WebKit::WebURLLoader* loader, 138 WebKit::WebURLLoader* loader,
141 unsigned long long bytesSent, 139 unsigned long long bytesSent,
142 unsigned long long totalBytesToBeSent); 140 unsigned long long totalBytesToBeSent);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 float playback_rate_; 289 float playback_rate_;
292 290
293 scoped_refptr<media::MediaLog> media_log_; 291 scoped_refptr<media::MediaLog> media_log_;
294 292
295 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); 293 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader);
296 }; 294 };
297 295
298 } // namespace webkit_media 296 } // namespace webkit_media
299 297
300 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 298 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698