OLD | NEW |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Message response handlers, called by the message handler for this process. | 140 // Message response handlers, called by the message handler for this process. |
141 void OnUploadProgress( | 141 void OnUploadProgress( |
142 int request_id, | 142 int request_id, |
143 int64 position, | 143 int64 position, |
144 int64 size); | 144 int64 size); |
145 void OnReceivedResponse(int request_id, const ResourceResponseHead&); | 145 void OnReceivedResponse(int request_id, const ResourceResponseHead&); |
146 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); | 146 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); |
147 void OnReceivedRedirect( | 147 void OnReceivedRedirect( |
148 int request_id, | 148 int request_id, |
149 const GURL& new_url, | 149 const GURL& new_url, |
| 150 const GURL& new_first_party_for_cookies, |
150 const ResourceResponseHead& response_head); | 151 const ResourceResponseHead& response_head); |
151 void OnSetDataBuffer( | 152 void OnSetDataBuffer( |
152 int request_id, | 153 int request_id, |
153 base::SharedMemoryHandle shm_handle, | 154 base::SharedMemoryHandle shm_handle, |
154 int shm_size, | 155 int shm_size, |
155 base::ProcessId renderer_pid); | 156 base::ProcessId renderer_pid); |
156 void OnReceivedData( | 157 void OnReceivedData( |
157 int request_id, | 158 int request_id, |
158 int data_offset, | 159 int data_offset, |
159 int data_length, | 160 int data_length, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 213 |
213 // IO thread timestamp for ongoing IPC message. | 214 // IO thread timestamp for ongoing IPC message. |
214 base::TimeTicks io_timestamp_; | 215 base::TimeTicks io_timestamp_; |
215 | 216 |
216 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 217 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
217 }; | 218 }; |
218 | 219 |
219 } // namespace content | 220 } // namespace content |
220 | 221 |
221 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 222 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
OLD | NEW |