Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_impl.cc

Issue 10911297: Modify AsyncResourceHandler to use a single shared memory buffer (in ring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 BrowserThread::IO, FROM_HERE, 373 BrowserThread::IO, FROM_HERE,
374 base::Bind(&appcache::AppCacheInterceptor::EnsureRegistered)); 374 base::Bind(&appcache::AppCacheInterceptor::EnsureRegistered));
375 375
376 update_load_states_timer_.reset( 376 update_load_states_timer_.reset(
377 new base::RepeatingTimer<ResourceDispatcherHostImpl>()); 377 new base::RepeatingTimer<ResourceDispatcherHostImpl>());
378 } 378 }
379 379
380 ResourceDispatcherHostImpl::~ResourceDispatcherHostImpl() { 380 ResourceDispatcherHostImpl::~ResourceDispatcherHostImpl() {
381 DCHECK(g_resource_dispatcher_host); 381 DCHECK(g_resource_dispatcher_host);
382 g_resource_dispatcher_host = NULL; 382 g_resource_dispatcher_host = NULL;
383 AsyncResourceHandler::GlobalCleanup();
384 } 383 }
385 384
386 // static 385 // static
387 ResourceDispatcherHostImpl* ResourceDispatcherHostImpl::Get() { 386 ResourceDispatcherHostImpl* ResourceDispatcherHostImpl::Get() {
388 return g_resource_dispatcher_host; 387 return g_resource_dispatcher_host;
389 } 388 }
390 389
391 void ResourceDispatcherHostImpl::SetDelegate( 390 void ResourceDispatcherHostImpl::SetDelegate(
392 ResourceDispatcherHostDelegate* delegate) { 391 ResourceDispatcherHostDelegate* delegate) {
393 delegate_ = delegate; 392 delegate_ = delegate;
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 1719
1721 return i->second.get(); 1720 return i->second.get();
1722 } 1721 }
1723 1722
1724 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, 1723 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id,
1725 int request_id) const { 1724 int request_id) const {
1726 return GetLoader(GlobalRequestID(child_id, request_id)); 1725 return GetLoader(GlobalRequestID(child_id, request_id));
1727 } 1726 }
1728 1727
1729 } // namespace content 1728 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698