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

Side by Side Diff: content/child/resource_dispatcher.h

Issue 2506363005: Send encoded_body_length to renderer when response completed (3/3) (Closed)
Patch Set: rebase Created 4 years 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 (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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); 208 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data);
209 void OnReceivedRedirect(int request_id, 209 void OnReceivedRedirect(int request_id,
210 const net::RedirectInfo& redirect_info, 210 const net::RedirectInfo& redirect_info,
211 const ResourceResponseHead& response_head); 211 const ResourceResponseHead& response_head);
212 void OnSetDataBuffer(int request_id, 212 void OnSetDataBuffer(int request_id,
213 base::SharedMemoryHandle shm_handle, 213 base::SharedMemoryHandle shm_handle,
214 int shm_size, 214 int shm_size,
215 base::ProcessId renderer_pid); 215 base::ProcessId renderer_pid);
216 void OnReceivedInlinedDataChunk(int request_id, 216 void OnReceivedInlinedDataChunk(int request_id,
217 const std::vector<char>& data, 217 const std::vector<char>& data,
218 int encoded_data_length, 218 int encoded_data_length);
219 int encoded_body_length);
220 void OnReceivedData(int request_id, 219 void OnReceivedData(int request_id,
221 int data_offset, 220 int data_offset,
222 int data_length, 221 int data_length,
223 int encoded_data_length, 222 int encoded_data_length);
224 int encoded_body_length);
225 void OnDownloadedData(int request_id, int data_len, int encoded_data_length); 223 void OnDownloadedData(int request_id, int data_len, int encoded_data_length);
226 void OnRequestComplete( 224 void OnRequestComplete(
227 int request_id, 225 int request_id,
228 const ResourceRequestCompletionStatus& request_complete_data); 226 const ResourceRequestCompletionStatus& request_complete_data);
229 227
230 // Dispatch the message to one of the message response handlers. 228 // Dispatch the message to one of the message response handlers.
231 void DispatchMessage(const IPC::Message& message); 229 void DispatchMessage(const IPC::Message& message);
232 230
233 // Dispatch any deferred messages for the given request, provided it is not 231 // Dispatch any deferred messages for the given request, provided it is not
234 // again in the deferred state. This method may mutate |pending_requests_|. 232 // again in the deferred state. This method may mutate |pending_requests_|.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 278 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
281 279
282 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 280 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
283 281
284 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 282 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
285 }; 283 };
286 284
287 } // namespace content 285 } // namespace content
288 286
289 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 287 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler_unittest.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698