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

Side by Side Diff: content/browser/browser_process_sub_thread.cc

Issue 9150017: Add a Content API around BrowserChildProcessHost, similar to what was done with ChildProcessHost.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix?! Created 8 years, 11 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
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | content/browser/content_ipc_logging.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/browser_process_sub_thread.h" 5 #include "content/browser/browser_process_sub_thread.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <Objbase.h> 8 #include <Objbase.h>
9 #endif 9 #endif
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // net::URLRequest/net::URLRequestContexts. 62 // net::URLRequest/net::URLRequestContexts.
63 63
64 // Destroy all URLRequests started by URLFetchers. 64 // Destroy all URLRequests started by URLFetchers.
65 content::URLFetcher::CancelAll(); 65 content::URLFetcher::CancelAll();
66 66
67 IndexedDBKeyUtilityClient::Shutdown(); 67 IndexedDBKeyUtilityClient::Shutdown();
68 68
69 // If any child processes are still running, terminate them and 69 // If any child processes are still running, terminate them and
70 // and delete the BrowserChildProcessHost instances to release whatever 70 // and delete the BrowserChildProcessHost instances to release whatever
71 // IO thread only resources they are referencing. 71 // IO thread only resources they are referencing.
72 BrowserChildProcessHost::TerminateAll(); 72 ::BrowserChildProcessHost::TerminateAll();
73 } 73 }
74 74
75 void BrowserProcessSubThread::IOThreadPostCleanUp() { 75 void BrowserProcessSubThread::IOThreadPostCleanUp() {
76 // net::URLRequest instances must NOT outlive the IO thread. 76 // net::URLRequest instances must NOT outlive the IO thread.
77 base::debug::LeakTracker<net::URLRequest>::CheckForLeaks(); 77 base::debug::LeakTracker<net::URLRequest>::CheckForLeaks();
78 } 78 }
79 79
80 } // namespace content 80 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | content/browser/content_ipc_logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698