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

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host.cc

Issue 443014: Merge 33144 - RESUBMIT of http://codereview.chromium.org/404025/show... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years 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
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_thread.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698