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

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

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_ 5 #ifndef MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_
6 #define MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_ 6 #define MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int64_t content_length(); 128 int64_t content_length();
129 129
130 // Gets the original size of the file requested. If this value is 130 // Gets the original size of the file requested. If this value is
131 // |kPositionNotSpecified|, then the size is unknown. 131 // |kPositionNotSpecified|, then the size is unknown.
132 int64_t instance_size(); 132 int64_t instance_size();
133 133
134 // Returns true if the server supports byte range requests. 134 // Returns true if the server supports byte range requests.
135 bool range_supported(); 135 bool range_supported();
136 136
137 // blink::WebURLLoaderClient implementation. 137 // blink::WebURLLoaderClient implementation.
138 void willFollowRedirect( 138 void willFollowRedirect(blink::WebURLLoader* loader,
139 blink::WebURLLoader* loader, 139 blink::WebURLRequest& newRequest,
140 blink::WebURLRequest& newRequest, 140 const blink::WebURLResponse& redirectResponse,
141 const blink::WebURLResponse& redirectResponse) override; 141 int64_t encodedDataLength) override;
kinuko 2016/06/28 15:35:07 style is inconsistent here and below but looks lik
Adam Rice 2016/06/29 09:52:15 Acknowledged.
142 void didSendData( 142 void didSendData(
143 blink::WebURLLoader* loader, 143 blink::WebURLLoader* loader,
144 unsigned long long bytesSent, 144 unsigned long long bytesSent,
145 unsigned long long totalBytesToBeSent) override; 145 unsigned long long totalBytesToBeSent) override;
146 void didReceiveResponse( 146 void didReceiveResponse(
147 blink::WebURLLoader* loader, 147 blink::WebURLLoader* loader,
148 const blink::WebURLResponse& response) override; 148 const blink::WebURLResponse& response) override;
149 void didDownloadData( 149 void didDownloadData(
150 blink::WebURLLoader* loader, 150 blink::WebURLLoader* loader,
151 int data_length, 151 int data_length,
152 int encoded_data_length) override; 152 int encoded_data_length) override;
153 void didReceiveData( 153 void didReceiveData(blink::WebURLLoader* loader,
154 blink::WebURLLoader* loader, 154 const char* data,
155 const char* data, 155 int data_length,
156 int data_length, 156 int encoded_data_length,
157 int encoded_data_length) override; 157 int encoded_body_length) override;
158 void didReceiveCachedMetadata( 158 void didReceiveCachedMetadata(
159 blink::WebURLLoader* loader, 159 blink::WebURLLoader* loader,
160 const char* data, int dataLength) override; 160 const char* data, int dataLength) override;
161 void didFinishLoading(blink::WebURLLoader* loader, 161 void didFinishLoading(blink::WebURLLoader* loader,
162 double finishTime, 162 double finishTime,
163 int64_t total_encoded_data_length) override; 163 int64_t total_encoded_data_length) override;
164 void didFail( 164 void didFail(
165 blink::WebURLLoader* loader, 165 blink::WebURLLoader* loader,
166 const blink::WebURLError&) override; 166 const blink::WebURLError&) override;
167 167
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 scoped_refptr<MediaLog> media_log_; 332 scoped_refptr<MediaLog> media_log_;
333 333
334 bool cancel_upon_deferral_; 334 bool cancel_upon_deferral_;
335 335
336 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); 336 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader);
337 }; 337 };
338 338
339 } // namespace media 339 } // namespace media
340 340
341 #endif // MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_ 341 #endif // MEDIA_BLINK_BUFFERED_RESOURCE_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698