| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 for (std::set<ProcessRouteIDs>::const_iterator iter = ids.begin(); | 286 for (std::set<ProcessRouteIDs>::const_iterator iter = ids.begin(); |
| 287 iter != ids.end(); ++iter) { | 287 iter != ids.end(); ++iter) { |
| 288 CancelBlockedRequestsForRoute(iter->first, iter->second); | 288 CancelBlockedRequestsForRoute(iter->first, iter->second); |
| 289 } | 289 } |
| 290 | 290 |
| 291 user_script_listener_->OnResourceDispatcherHostGone(); | 291 user_script_listener_->OnResourceDispatcherHostGone(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void ResourceDispatcherHost::Initialize() { | 294 void ResourceDispatcherHost::Initialize() { |
| 295 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); | 295 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
| 296 webkit_thread_->Initialize(); |
| 296 safe_browsing_->Initialize(); | 297 safe_browsing_->Initialize(); |
| 297 ChromeThread::PostTask( | 298 ChromeThread::PostTask( |
| 298 ChromeThread::IO, FROM_HERE, | 299 ChromeThread::IO, FROM_HERE, |
| 299 NewRunnableFunction(&appcache::AppCacheInterceptor::EnsureRegistered)); | 300 NewRunnableFunction(&appcache::AppCacheInterceptor::EnsureRegistered)); |
| 300 } | 301 } |
| 301 | 302 |
| 302 void ResourceDispatcherHost::Shutdown() { | 303 void ResourceDispatcherHost::Shutdown() { |
| 303 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); | 304 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
| 304 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, new ShutdownTask(this)); | 305 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, new ShutdownTask(this)); |
| 305 } | 306 } |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 case ViewHostMsg_UploadProgress_ACK::ID: | 1819 case ViewHostMsg_UploadProgress_ACK::ID: |
| 1819 case ViewHostMsg_SyncLoad::ID: | 1820 case ViewHostMsg_SyncLoad::ID: |
| 1820 return true; | 1821 return true; |
| 1821 | 1822 |
| 1822 default: | 1823 default: |
| 1823 break; | 1824 break; |
| 1824 } | 1825 } |
| 1825 | 1826 |
| 1826 return false; | 1827 return false; |
| 1827 } | 1828 } |
| OLD | NEW |