| 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); | 171 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); |
| 172 void OnReceivedRedirect(int request_id, | 172 void OnReceivedRedirect(int request_id, |
| 173 const net::RedirectInfo& redirect_info, | 173 const net::RedirectInfo& redirect_info, |
| 174 const ResourceResponseHead& response_head); | 174 const ResourceResponseHead& response_head); |
| 175 void OnSetDataBuffer(int request_id, | 175 void OnSetDataBuffer(int request_id, |
| 176 base::SharedMemoryHandle shm_handle, | 176 base::SharedMemoryHandle shm_handle, |
| 177 int shm_size, | 177 int shm_size, |
| 178 base::ProcessId renderer_pid); | 178 base::ProcessId renderer_pid); |
| 179 void OnReceivedInlinedDataChunk(int request_id, | 179 void OnReceivedInlinedDataChunk(int request_id, |
| 180 const std::vector<char>& data, | 180 const std::vector<char>& data, |
| 181 int encoded_data_length); | 181 int encoded_data_length, |
| 182 int encoded_body_length); |
| 182 void OnReceivedData(int request_id, | 183 void OnReceivedData(int request_id, |
| 183 int data_offset, | 184 int data_offset, |
| 184 int data_length, | 185 int data_length, |
| 185 int encoded_data_length); | 186 int encoded_data_length, |
| 187 int encoded_body_length); |
| 186 void OnDownloadedData(int request_id, int data_len, int encoded_data_length); | 188 void OnDownloadedData(int request_id, int data_len, int encoded_data_length); |
| 187 void OnRequestComplete( | 189 void OnRequestComplete( |
| 188 int request_id, | 190 int request_id, |
| 189 const ResourceRequestCompletionStatus& request_complete_data); | 191 const ResourceRequestCompletionStatus& request_complete_data); |
| 190 | 192 |
| 191 // Dispatch the message to one of the message response handlers. | 193 // Dispatch the message to one of the message response handlers. |
| 192 void DispatchMessage(const IPC::Message& message); | 194 void DispatchMessage(const IPC::Message& message); |
| 193 | 195 |
| 194 // Dispatch any deferred messages for the given request, provided it is not | 196 // Dispatch any deferred messages for the given request, provided it is not |
| 195 // again in the deferred state. This method may mutate |pending_requests_|. | 197 // again in the deferred state. This method may mutate |pending_requests_|. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; | 243 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; |
| 242 | 244 |
| 243 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; | 245 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; |
| 244 | 246 |
| 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); | 247 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); |
| 246 }; | 248 }; |
| 247 | 249 |
| 248 } // namespace content | 250 } // namespace content |
| 249 | 251 |
| 250 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ | 252 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ |
| OLD | NEW |