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

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

Issue 10554008: Move content::URLFetcher static functions to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win link error Created 8 years, 6 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 #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
11 #include "base/debug/leak_tracker.h" 11 #include "base/debug/leak_tracker.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/browser/browser_child_process_host_impl.h" 14 #include "content/browser/browser_child_process_host_impl.h"
15 #include "content/browser/in_process_webkit/indexed_db_key_utility_client.h" 15 #include "content/browser/in_process_webkit/indexed_db_key_utility_client.h"
16 #include "content/browser/notification_service_impl.h" 16 #include "content/browser/notification_service_impl.h"
17 #include "content/public/common/url_fetcher.h" 17 #include "net/url_request/url_fetcher.h"
18 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier) 22 BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier)
23 : BrowserThreadImpl(identifier), 23 : BrowserThreadImpl(identifier),
24 notification_service_(NULL) { 24 notification_service_(NULL) {
25 } 25 }
26 26
27 BrowserProcessSubThread::~BrowserProcessSubThread() { 27 BrowserProcessSubThread::~BrowserProcessSubThread() {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // be balanced by a corresponding call to CoUninitialize. 61 // be balanced by a corresponding call to CoUninitialize.
62 CoUninitialize(); 62 CoUninitialize();
63 #endif 63 #endif
64 } 64 }
65 65
66 void BrowserProcessSubThread::IOThreadPreCleanUp() { 66 void BrowserProcessSubThread::IOThreadPreCleanUp() {
67 // Kill all things that might be holding onto 67 // Kill all things that might be holding onto
68 // net::URLRequest/net::URLRequestContexts. 68 // net::URLRequest/net::URLRequestContexts.
69 69
70 // Destroy all URLRequests started by URLFetchers. 70 // Destroy all URLRequests started by URLFetchers.
71 content::URLFetcher::CancelAll(); 71 net::URLFetcher::CancelAll();
72 72
73 IndexedDBKeyUtilityClient::Shutdown(); 73 IndexedDBKeyUtilityClient::Shutdown();
74 74
75 // If any child processes are still running, terminate them and 75 // If any child processes are still running, terminate them and
76 // and delete the BrowserChildProcessHost instances to release whatever 76 // and delete the BrowserChildProcessHost instances to release whatever
77 // IO thread only resources they are referencing. 77 // IO thread only resources they are referencing.
78 BrowserChildProcessHostImpl::TerminateAll(); 78 BrowserChildProcessHostImpl::TerminateAll();
79 } 79 }
80 80
81 } // namespace content 81 } // namespace content
OLDNEW
« no previous file with comments | « chrome/service/service_process.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698