| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 for (std::set<ProcessRouteIDs>::const_iterator iter = ids.begin(); | 279 for (std::set<ProcessRouteIDs>::const_iterator iter = ids.begin(); |
| 280 iter != ids.end(); ++iter) { | 280 iter != ids.end(); ++iter) { |
| 281 CancelBlockedRequestsForRoute(iter->first, iter->second); | 281 CancelBlockedRequestsForRoute(iter->first, iter->second); |
| 282 } | 282 } |
| 283 | 283 |
| 284 user_script_listener_->OnResourceDispatcherHostGone(); | 284 user_script_listener_->OnResourceDispatcherHostGone(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 void ResourceDispatcherHost::Initialize() { | 287 void ResourceDispatcherHost::Initialize() { |
| 288 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); | 288 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
| 289 webkit_thread_->Initialize(); |
| 289 safe_browsing_->Initialize(); | 290 safe_browsing_->Initialize(); |
| 290 ChromeThread::PostTask( | 291 ChromeThread::PostTask( |
| 291 ChromeThread::IO, FROM_HERE, | 292 ChromeThread::IO, FROM_HERE, |
| 292 NewRunnableFunction(&appcache::AppCacheInterceptor::EnsureRegistered)); | 293 NewRunnableFunction(&appcache::AppCacheInterceptor::EnsureRegistered)); |
| 293 } | 294 } |
| 294 | 295 |
| 295 void ResourceDispatcherHost::Shutdown() { | 296 void ResourceDispatcherHost::Shutdown() { |
| 296 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); | 297 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
| 297 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, new ShutdownTask(this)); | 298 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, new ShutdownTask(this)); |
| 298 } | 299 } |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 case ViewHostMsg_UploadProgress_ACK::ID: | 1812 case ViewHostMsg_UploadProgress_ACK::ID: |
| 1812 case ViewHostMsg_SyncLoad::ID: | 1813 case ViewHostMsg_SyncLoad::ID: |
| 1813 return true; | 1814 return true; |
| 1814 | 1815 |
| 1815 default: | 1816 default: |
| 1816 break; | 1817 break; |
| 1817 } | 1818 } |
| 1818 | 1819 |
| 1819 return false; | 1820 return false; |
| 1820 } | 1821 } |
| OLD | NEW |