| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 ResourceDispatcherHost::ResourceDispatcherHost(MessageLoop* io_loop) | 253 ResourceDispatcherHost::ResourceDispatcherHost(MessageLoop* io_loop) |
| 254 : ui_loop_(MessageLoop::current()), | 254 : ui_loop_(MessageLoop::current()), |
| 255 io_loop_(io_loop), | 255 io_loop_(io_loop), |
| 256 ALLOW_THIS_IN_INITIALIZER_LIST( | 256 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 257 download_file_manager_(new DownloadFileManager(this))), | 257 download_file_manager_(new DownloadFileManager(this))), |
| 258 download_request_manager_(new DownloadRequestManager(io_loop, ui_loop_)), | 258 download_request_manager_(new DownloadRequestManager(io_loop, ui_loop_)), |
| 259 ALLOW_THIS_IN_INITIALIZER_LIST( | 259 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 260 save_file_manager_(new SaveFileManager(ui_loop_, io_loop, this))), | 260 save_file_manager_(new SaveFileManager(ui_loop_, io_loop, this))), |
| 261 ALLOW_THIS_IN_INITIALIZER_LIST(user_script_listener_( | 261 ALLOW_THIS_IN_INITIALIZER_LIST(user_script_listener_( |
| 262 new UserScriptListener(ui_loop_, io_loop, this))), | 262 new UserScriptListener(this))), |
| 263 safe_browsing_(new SafeBrowsingService), | 263 safe_browsing_(new SafeBrowsingService), |
| 264 webkit_thread_(new WebKitThread), | 264 webkit_thread_(new WebKitThread), |
| 265 request_id_(-1), | 265 request_id_(-1), |
| 266 ALLOW_THIS_IN_INITIALIZER_LIST(method_runner_(this)), | 266 ALLOW_THIS_IN_INITIALIZER_LIST(method_runner_(this)), |
| 267 is_shutdown_(false), | 267 is_shutdown_(false), |
| 268 max_outstanding_requests_cost_per_process_( | 268 max_outstanding_requests_cost_per_process_( |
| 269 kMaxOutstandingRequestsCostPerProcess), | 269 kMaxOutstandingRequestsCostPerProcess), |
| 270 receiver_(NULL) { | 270 receiver_(NULL) { |
| 271 } | 271 } |
| 272 | 272 |
| (...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 case ViewHostMsg_UploadProgress_ACK::ID: | 1799 case ViewHostMsg_UploadProgress_ACK::ID: |
| 1800 case ViewHostMsg_SyncLoad::ID: | 1800 case ViewHostMsg_SyncLoad::ID: |
| 1801 return true; | 1801 return true; |
| 1802 | 1802 |
| 1803 default: | 1803 default: |
| 1804 break; | 1804 break; |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 return false; | 1807 return false; |
| 1808 } | 1808 } |
| OLD | NEW |