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_COMMON_RESOURCE_DISPATCHER_H_ | 7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_ | 8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 int request_id, | 117 int request_id, |
118 base::SharedMemoryHandle data, | 118 base::SharedMemoryHandle data, |
119 int data_len, | 119 int data_len, |
120 int encoded_data_length); | 120 int encoded_data_length); |
121 void OnDownloadedData( | 121 void OnDownloadedData( |
122 const IPC::Message& message, | 122 const IPC::Message& message, |
123 int request_id, | 123 int request_id, |
124 int data_len); | 124 int data_len); |
125 void OnRequestComplete( | 125 void OnRequestComplete( |
126 int request_id, | 126 int request_id, |
127 const net::URLRequestStatus& status, | 127 int error_code, |
| 128 bool was_ignored_by_handler, |
128 const std::string& security_info, | 129 const std::string& security_info, |
129 const base::TimeTicks& completion_time); | 130 const base::TimeTicks& completion_time); |
130 | 131 |
131 // Dispatch the message to one of the message response handlers. | 132 // Dispatch the message to one of the message response handlers. |
132 void DispatchMessage(const IPC::Message& message); | 133 void DispatchMessage(const IPC::Message& message); |
133 | 134 |
134 // Dispatch any deferred messages for the given request, provided it is not | 135 // Dispatch any deferred messages for the given request, provided it is not |
135 // again in the deferred state. | 136 // again in the deferred state. |
136 void FlushDeferredMessages(int request_id); | 137 void FlushDeferredMessages(int request_id); |
137 | 138 |
(...skipping 28 matching lines...) Expand all Loading... |
166 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; | 167 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; |
167 | 168 |
168 ResourceDispatcherDelegate* delegate_; | 169 ResourceDispatcherDelegate* delegate_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 171 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace content | 174 } // namespace content |
174 | 175 |
175 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ | 176 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
OLD | NEW |