| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void OnDownloadedData( | 147 void OnDownloadedData( |
| 148 int request_id, | 148 int request_id, |
| 149 int data_len, | 149 int data_len, |
| 150 int encoded_data_length); | 150 int encoded_data_length); |
| 151 void OnRequestComplete( | 151 void OnRequestComplete( |
| 152 int request_id, | 152 int request_id, |
| 153 int error_code, | 153 int error_code, |
| 154 bool was_ignored_by_handler, | 154 bool was_ignored_by_handler, |
| 155 const std::string& security_info, | 155 const std::string& security_info, |
| 156 const base::TimeTicks& completion_time); | 156 const base::TimeTicks& completion_time); |
| 157 void OnRequestDidStartForFrame(int request_id); |
| 157 | 158 |
| 158 // Dispatch the message to one of the message response handlers. | 159 // Dispatch the message to one of the message response handlers. |
| 159 void DispatchMessage(const IPC::Message& message); | 160 void DispatchMessage(const IPC::Message& message); |
| 160 | 161 |
| 161 // Dispatch any deferred messages for the given request, provided it is not | 162 // Dispatch any deferred messages for the given request, provided it is not |
| 162 // again in the deferred state. | 163 // again in the deferred state. |
| 163 void FlushDeferredMessages(int request_id); | 164 void FlushDeferredMessages(int request_id); |
| 164 | 165 |
| 165 void ToResourceResponseInfo( | 166 void ToResourceResponseInfo( |
| 166 const PendingRequestInfo& request_info, | 167 const PendingRequestInfo& request_info, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 202 |
| 202 // IO thread timestamp for ongoing IPC message. | 203 // IO thread timestamp for ongoing IPC message. |
| 203 base::TimeTicks io_timestamp_; | 204 base::TimeTicks io_timestamp_; |
| 204 | 205 |
| 205 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 206 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace content | 209 } // namespace content |
| 209 | 210 |
| 210 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 211 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |