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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 int request_id, | 121 int request_id, |
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 int error_code, |
132 const std::string& security_info, | 132 const std::string& security_info, |
133 const base::TimeTicks& completion_time); | 133 const base::TimeTicks& completion_time); |
134 | 134 |
135 // Dispatch the message to one of the message response handlers. | 135 // Dispatch the message to one of the message response handlers. |
136 void DispatchMessage(const IPC::Message& message); | 136 void DispatchMessage(const IPC::Message& message); |
137 | 137 |
138 // Dispatch any deferred messages for the given request, provided it is not | 138 // Dispatch any deferred messages for the given request, provided it is not |
139 // again in the deferred state. | 139 // again in the deferred state. |
140 void FlushDeferredMessages(int request_id); | 140 void FlushDeferredMessages(int request_id); |
141 | 141 |
(...skipping 26 matching lines...) Expand all Loading... |
168 PendingRequestList pending_requests_; | 168 PendingRequestList pending_requests_; |
169 | 169 |
170 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; | 170 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; |
171 | 171 |
172 content::ResourceDispatcherDelegate* delegate_; | 172 content::ResourceDispatcherDelegate* delegate_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 174 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
175 }; | 175 }; |
176 | 176 |
177 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ | 177 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
OLD | NEW |