OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 response->response_head.content_length = request->GetExpectedContentSize(); | 243 response->response_head.content_length = request->GetExpectedContentSize(); |
244 request->GetMimeType(&response->response_head.mime_type); | 244 request->GetMimeType(&response->response_head.mime_type); |
245 appcache::AppCacheInterceptor::GetExtraResponseInfo( | 245 appcache::AppCacheInterceptor::GetExtraResponseInfo( |
246 request, | 246 request, |
247 &response->response_head.appcache_id, | 247 &response->response_head.appcache_id, |
248 &response->response_head.appcache_manifest_url); | 248 &response->response_head.appcache_manifest_url); |
249 } | 249 } |
250 | 250 |
251 } // namespace | 251 } // namespace |
252 | 252 |
253 ResourceDispatcherHost::ResourceDispatcherHost(MessageLoop* io_loop) | 253 ResourceDispatcherHost::ResourceDispatcherHost() |
254 : ui_loop_(MessageLoop::current()), | 254 : ALLOW_THIS_IN_INITIALIZER_LIST( |
255 io_loop_(io_loop), | |
256 ALLOW_THIS_IN_INITIALIZER_LIST( | |
257 download_file_manager_(new DownloadFileManager(this))), | 255 download_file_manager_(new DownloadFileManager(this))), |
258 download_request_manager_(new DownloadRequestManager(io_loop, ui_loop_)), | 256 download_request_manager_(new DownloadRequestManager()), |
259 ALLOW_THIS_IN_INITIALIZER_LIST( | 257 ALLOW_THIS_IN_INITIALIZER_LIST( |
260 save_file_manager_(new SaveFileManager(this))), | 258 save_file_manager_(new SaveFileManager(this))), |
261 ALLOW_THIS_IN_INITIALIZER_LIST(user_script_listener_( | 259 ALLOW_THIS_IN_INITIALIZER_LIST(user_script_listener_( |
262 new UserScriptListener(this))), | 260 new UserScriptListener(this))), |
263 safe_browsing_(new SafeBrowsingService), | 261 safe_browsing_(new SafeBrowsingService), |
264 webkit_thread_(new WebKitThread), | 262 webkit_thread_(new WebKitThread), |
265 request_id_(-1), | 263 request_id_(-1), |
266 ALLOW_THIS_IN_INITIALIZER_LIST(method_runner_(this)), | 264 ALLOW_THIS_IN_INITIALIZER_LIST(method_runner_(this)), |
267 is_shutdown_(false), | 265 is_shutdown_(false), |
268 max_outstanding_requests_cost_per_process_( | 266 max_outstanding_requests_cost_per_process_( |
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 case ViewHostMsg_UploadProgress_ACK::ID: | 1802 case ViewHostMsg_UploadProgress_ACK::ID: |
1805 case ViewHostMsg_SyncLoad::ID: | 1803 case ViewHostMsg_SyncLoad::ID: |
1806 return true; | 1804 return true; |
1807 | 1805 |
1808 default: | 1806 default: |
1809 break; | 1807 break; |
1810 } | 1808 } |
1811 | 1809 |
1812 return false; | 1810 return false; |
1813 } | 1811 } |
OLD | NEW |