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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 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
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.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 <deque> 10 #include <deque>
(...skipping 10 matching lines...) Expand all
21 #include "ipc/ipc_sender.h" 21 #include "ipc/ipc_sender.h"
22 #include "net/base/request_priority.h" 22 #include "net/base/request_priority.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 24
25 struct ResourceMsg_RequestCompleteData; 25 struct ResourceMsg_RequestCompleteData;
26 26
27 namespace blink { 27 namespace blink {
28 class WebThreadedDataReceiver; 28 class WebThreadedDataReceiver;
29 } 29 }
30 30
31 namespace net {
32 struct RedirectInfo;
33 }
34
31 namespace webkit_glue { 35 namespace webkit_glue {
32 class ResourceLoaderBridge; 36 class ResourceLoaderBridge;
33 } 37 }
34 38
35 namespace content { 39 namespace content {
36 class RequestPeer; 40 class RequestPeer;
37 class ResourceDispatcherDelegate; 41 class ResourceDispatcherDelegate;
38 class ThreadedDataProvider; 42 class ThreadedDataProvider;
39 struct ResourceResponseInfo; 43 struct ResourceResponseInfo;
40 struct RequestInfo; 44 struct RequestInfo;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 PendingRequestInfo* GetPendingRequestInfo(int request_id); 153 PendingRequestInfo* GetPendingRequestInfo(int request_id);
150 154
151 // Follows redirect, if any, for the given request. 155 // Follows redirect, if any, for the given request.
152 void FollowPendingRedirect(int request_id, PendingRequestInfo& request_info); 156 void FollowPendingRedirect(int request_id, PendingRequestInfo& request_info);
153 157
154 // Message response handlers, called by the message handler for this process. 158 // Message response handlers, called by the message handler for this process.
155 void OnUploadProgress(int request_id, int64 position, int64 size); 159 void OnUploadProgress(int request_id, int64 position, int64 size);
156 void OnReceivedResponse(int request_id, const ResourceResponseHead&); 160 void OnReceivedResponse(int request_id, const ResourceResponseHead&);
157 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); 161 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data);
158 void OnReceivedRedirect(int request_id, 162 void OnReceivedRedirect(int request_id,
159 const GURL& new_url, 163 const net::RedirectInfo& redirect_info,
160 const GURL& new_first_party_for_cookies,
161 const ResourceResponseHead& response_head); 164 const ResourceResponseHead& response_head);
162 void OnSetDataBuffer(int request_id, 165 void OnSetDataBuffer(int request_id,
163 base::SharedMemoryHandle shm_handle, 166 base::SharedMemoryHandle shm_handle,
164 int shm_size, 167 int shm_size,
165 base::ProcessId renderer_pid); 168 base::ProcessId renderer_pid);
166 void OnReceivedData(int request_id, 169 void OnReceivedData(int request_id,
167 int data_offset, 170 int data_offset,
168 int data_length, 171 int data_length,
169 int encoded_data_length); 172 int encoded_data_length);
170 void OnDownloadedData(int request_id, int data_len, int encoded_data_length); 173 void OnDownloadedData(int request_id, int data_len, int encoded_data_length);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 220
218 // IO thread timestamp for ongoing IPC message. 221 // IO thread timestamp for ongoing IPC message.
219 base::TimeTicks io_timestamp_; 222 base::TimeTicks io_timestamp_;
220 223
221 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 224 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
222 }; 225 };
223 226
224 } // namespace content 227 } // namespace content
225 228
226 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 229 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_url_fetcher.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698