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

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

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // unknown. 129 // unknown.
130 int64 content_length(); 130 int64 content_length();
131 131
132 // Gets the original size of the file requested. If this value is 132 // Gets the original size of the file requested. If this value is
133 // |kPositionNotSpecified|, then the size is unknown. 133 // |kPositionNotSpecified|, then the size is unknown.
134 int64 instance_size(); 134 int64 instance_size();
135 135
136 // Returns true if the server supports byte range requests. 136 // Returns true if the server supports byte range requests.
137 bool range_supported(); 137 bool range_supported();
138 138
139 // Returns resulting URL.
140 const GURL& url();
141
142 // WebKit::WebURLLoaderClient implementation. 139 // WebKit::WebURLLoaderClient implementation.
143 virtual void willSendRequest( 140 virtual void willSendRequest(
144 WebKit::WebURLLoader* loader, 141 WebKit::WebURLLoader* loader,
145 WebKit::WebURLRequest& newRequest, 142 WebKit::WebURLRequest& newRequest,
146 const WebKit::WebURLResponse& redirectResponse); 143 const WebKit::WebURLResponse& redirectResponse);
147 virtual void didSendData( 144 virtual void didSendData(
148 WebKit::WebURLLoader* loader, 145 WebKit::WebURLLoader* loader,
149 unsigned long long bytesSent, 146 unsigned long long bytesSent,
150 unsigned long long totalBytesToBeSent); 147 unsigned long long totalBytesToBeSent);
151 virtual void didReceiveResponse( 148 virtual void didReceiveResponse(
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 float playback_rate_; 322 float playback_rate_;
326 323
327 scoped_refptr<media::MediaLog> media_log_; 324 scoped_refptr<media::MediaLog> media_log_;
328 325
329 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); 326 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader);
330 }; 327 };
331 328
332 } // namespace webkit_media 329 } // namespace webkit_media
333 330
334 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_ 331 #endif // WEBKIT_MEDIA_BUFFERED_RESOURCE_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698