| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 base::SharedMemoryHandle data, | 122 base::SharedMemoryHandle data, |
| 123 int data_len, | 123 int data_len, |
| 124 int encoded_data_length); | 124 int encoded_data_length); |
| 125 void OnDownloadedData( | 125 void OnDownloadedData( |
| 126 const IPC::Message& message, | 126 const IPC::Message& message, |
| 127 int request_id, | 127 int request_id, |
| 128 int data_len); | 128 int data_len); |
| 129 void OnRequestComplete( | 129 void OnRequestComplete( |
| 130 int request_id, | 130 int request_id, |
| 131 const net::URLRequestStatus& status, | 131 const net::URLRequestStatus& status, |
| 132 bool handled_externally, |
| 132 const std::string& security_info, | 133 const std::string& security_info, |
| 133 const base::TimeTicks& completion_time); | 134 const base::TimeTicks& completion_time); |
| 134 | 135 |
| 135 // Dispatch the message to one of the message response handlers. | 136 // Dispatch the message to one of the message response handlers. |
| 136 void DispatchMessage(const IPC::Message& message); | 137 void DispatchMessage(const IPC::Message& message); |
| 137 | 138 |
| 138 // Dispatch any deferred messages for the given request, provided it is not | 139 // Dispatch any deferred messages for the given request, provided it is not |
| 139 // again in the deferred state. | 140 // again in the deferred state. |
| 140 void FlushDeferredMessages(int request_id); | 141 void FlushDeferredMessages(int request_id); |
| 141 | 142 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 168 PendingRequestList pending_requests_; | 169 PendingRequestList pending_requests_; |
| 169 | 170 |
| 170 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; | 171 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; |
| 171 | 172 |
| 172 content::ResourceDispatcherDelegate* delegate_; | 173 content::ResourceDispatcherDelegate* delegate_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 175 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ | 178 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |