| 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 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 BrowserThread::IO, FROM_HERE, | 372 BrowserThread::IO, FROM_HERE, |
| 373 base::Bind(&appcache::AppCacheInterceptor::EnsureRegistered)); | 373 base::Bind(&appcache::AppCacheInterceptor::EnsureRegistered)); |
| 374 | 374 |
| 375 update_load_states_timer_.reset( | 375 update_load_states_timer_.reset( |
| 376 new base::RepeatingTimer<ResourceDispatcherHostImpl>()); | 376 new base::RepeatingTimer<ResourceDispatcherHostImpl>()); |
| 377 } | 377 } |
| 378 | 378 |
| 379 ResourceDispatcherHostImpl::~ResourceDispatcherHostImpl() { | 379 ResourceDispatcherHostImpl::~ResourceDispatcherHostImpl() { |
| 380 DCHECK(g_resource_dispatcher_host); | 380 DCHECK(g_resource_dispatcher_host); |
| 381 g_resource_dispatcher_host = NULL; | 381 g_resource_dispatcher_host = NULL; |
| 382 AsyncResourceHandler::GlobalCleanup(); | |
| 383 } | 382 } |
| 384 | 383 |
| 385 // static | 384 // static |
| 386 ResourceDispatcherHostImpl* ResourceDispatcherHostImpl::Get() { | 385 ResourceDispatcherHostImpl* ResourceDispatcherHostImpl::Get() { |
| 387 return g_resource_dispatcher_host; | 386 return g_resource_dispatcher_host; |
| 388 } | 387 } |
| 389 | 388 |
| 390 void ResourceDispatcherHostImpl::SetDelegate( | 389 void ResourceDispatcherHostImpl::SetDelegate( |
| 391 ResourceDispatcherHostDelegate* delegate) { | 390 ResourceDispatcherHostDelegate* delegate) { |
| 392 delegate_ = delegate; | 391 delegate_ = delegate; |
| (...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1709 | 1708 |
| 1710 return i->second.get(); | 1709 return i->second.get(); |
| 1711 } | 1710 } |
| 1712 | 1711 |
| 1713 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, | 1712 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, |
| 1714 int request_id) const { | 1713 int request_id) const { |
| 1715 return GetLoader(GlobalRequestID(child_id, request_id)); | 1714 return GetLoader(GlobalRequestID(child_id, request_id)); |
| 1716 } | 1715 } |
| 1717 | 1716 |
| 1718 } // namespace content | 1717 } // namespace content |
| OLD | NEW |