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 #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 Loading... |
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 |
OLD | NEW |