| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); | 119 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); |
| 120 void OnReceivedRedirect( | 120 void OnReceivedRedirect( |
| 121 const IPC::Message& message, | 121 const IPC::Message& message, |
| 122 int request_id, | 122 int request_id, |
| 123 const GURL& new_url, | 123 const GURL& new_url, |
| 124 const webkit_glue::ResourceResponseInfo& info); | 124 const webkit_glue::ResourceResponseInfo& info); |
| 125 void OnReceivedData( | 125 void OnReceivedData( |
| 126 const IPC::Message& message, | 126 const IPC::Message& message, |
| 127 int request_id, | 127 int request_id, |
| 128 base::SharedMemoryHandle data, | 128 base::SharedMemoryHandle data, |
| 129 int data_len); | 129 int data_len, |
| 130 int raw_data_length); |
| 130 void OnDownloadedData( | 131 void OnDownloadedData( |
| 131 const IPC::Message& message, | 132 const IPC::Message& message, |
| 132 int request_id, | 133 int request_id, |
| 133 int data_len); | 134 int data_len); |
| 134 void OnRequestComplete( | 135 void OnRequestComplete( |
| 135 int request_id, | 136 int request_id, |
| 136 const net::URLRequestStatus& status, | 137 const net::URLRequestStatus& status, |
| 137 const std::string& security_info, | 138 const std::string& security_info, |
| 138 const base::Time& completion_time); | 139 const base::Time& completion_time); |
| 139 | 140 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 164 PendingRequestList pending_requests_; | 165 PendingRequestList pending_requests_; |
| 165 | 166 |
| 166 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; | 167 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; |
| 167 | 168 |
| 168 scoped_ptr<Observer> observer_; | 169 scoped_ptr<Observer> observer_; |
| 169 | 170 |
| 170 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 171 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ | 174 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |