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

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

Issue 11066054: Build browser_process_sub_thread.cc on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | content/content_browser.gypi » ('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) 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 #include "content/browser/browser_process_sub_thread.h" 5 #include "content/browser/browser_process_sub_thread.h"
6 6
7 #include "base/debug/leak_tracker.h" 7 #include "base/debug/leak_tracker.h"
8 #include "base/threading/thread_restrictions.h" 8 #include "base/threading/thread_restrictions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/browser_child_process_host_impl.h" 10 #include "content/browser/browser_child_process_host_impl.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #endif 57 #endif
58 } 58 }
59 59
60 void BrowserProcessSubThread::IOThreadPreCleanUp() { 60 void BrowserProcessSubThread::IOThreadPreCleanUp() {
61 // Kill all things that might be holding onto 61 // Kill all things that might be holding onto
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 net::URLFetcher::CancelAll(); 65 net::URLFetcher::CancelAll();
66 66
67 #if !defined(OS_IOS)
67 // If any child processes are still running, terminate them and 68 // If any child processes are still running, terminate them and
68 // and delete the BrowserChildProcessHost instances to release whatever 69 // and delete the BrowserChildProcessHost instances to release whatever
69 // IO thread only resources they are referencing. 70 // IO thread only resources they are referencing.
70 BrowserChildProcessHostImpl::TerminateAll(); 71 BrowserChildProcessHostImpl::TerminateAll();
72 #endif // !defined(OS_IOS)
71 } 73 }
72 74
73 } // namespace content 75 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698