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

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

Issue 2814273006: Remove an unnecessary CachedMetadata copy in URLLoaderClientImpl (Closed)
Patch Set: fix Created 3 years, 8 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
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Helper to lookup the info based on the request_id. 198 // Helper to lookup the info based on the request_id.
199 // May return NULL if the request as been canceled from the client side. 199 // May return NULL if the request as been canceled from the client side.
200 PendingRequestInfo* GetPendingRequestInfo(int request_id); 200 PendingRequestInfo* GetPendingRequestInfo(int request_id);
201 201
202 // Follows redirect, if any, for the given request. 202 // Follows redirect, if any, for the given request.
203 void FollowPendingRedirect(int request_id, PendingRequestInfo* request_info); 203 void FollowPendingRedirect(int request_id, PendingRequestInfo* request_info);
204 204
205 // Message response handlers, called by the message handler for this process. 205 // Message response handlers, called by the message handler for this process.
206 void OnUploadProgress(int request_id, int64_t position, int64_t size); 206 void OnUploadProgress(int request_id, int64_t position, int64_t size);
207 void OnReceivedResponse(int request_id, const ResourceResponseHead&); 207 void OnReceivedResponse(int request_id, const ResourceResponseHead&);
208 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); 208 void OnReceivedCachedMetadata(int request_id,
209 const std::vector<uint8_t>& data);
209 void OnReceivedRedirect(int request_id, 210 void OnReceivedRedirect(int request_id,
210 const net::RedirectInfo& redirect_info, 211 const net::RedirectInfo& redirect_info,
211 const ResourceResponseHead& response_head); 212 const ResourceResponseHead& response_head);
212 void OnSetDataBuffer(int request_id, 213 void OnSetDataBuffer(int request_id,
213 base::SharedMemoryHandle shm_handle, 214 base::SharedMemoryHandle shm_handle,
214 int shm_size, 215 int shm_size,
215 base::ProcessId renderer_pid); 216 base::ProcessId renderer_pid);
216 void OnReceivedData(int request_id, 217 void OnReceivedData(int request_id,
217 int data_offset, 218 int data_offset,
218 int data_length, 219 int data_length,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 275 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
275 276
276 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 277 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
277 278
278 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 279 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
279 }; 280 };
280 281
281 } // namespace content 282 } // namespace content
282 283
283 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 284 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698