| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 base::ProcessId renderer_pid); | 138 base::ProcessId renderer_pid); |
| 139 void OnReceivedData( | 139 void OnReceivedData( |
| 140 const IPC::Message& message, | 140 const IPC::Message& message, |
| 141 int request_id, | 141 int request_id, |
| 142 int data_offset, | 142 int data_offset, |
| 143 int data_length, | 143 int data_length, |
| 144 int encoded_data_length); | 144 int encoded_data_length); |
| 145 void OnDownloadedData( | 145 void OnDownloadedData( |
| 146 const IPC::Message& message, | 146 const IPC::Message& message, |
| 147 int request_id, | 147 int request_id, |
| 148 int data_len); | 148 int data_len, |
| 149 int encoded_data_length); |
| 149 void OnRequestComplete( | 150 void OnRequestComplete( |
| 150 int request_id, | 151 int request_id, |
| 151 int error_code, | 152 int error_code, |
| 152 bool was_ignored_by_handler, | 153 bool was_ignored_by_handler, |
| 153 const std::string& security_info, | 154 const std::string& security_info, |
| 154 const base::TimeTicks& completion_time); | 155 const base::TimeTicks& completion_time); |
| 155 | 156 |
| 156 // Dispatch the message to one of the message response handlers. | 157 // Dispatch the message to one of the message response handlers. |
| 157 void DispatchMessage(const IPC::Message& message); | 158 void DispatchMessage(const IPC::Message& message); |
| 158 | 159 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 200 |
| 200 // IO thread timestamp for ongoing IPC message. | 201 // IO thread timestamp for ongoing IPC message. |
| 201 base::TimeTicks io_timestamp_; | 202 base::TimeTicks io_timestamp_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 204 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 } // namespace content | 207 } // namespace content |
| 207 | 208 |
| 208 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 209 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |