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

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

Issue 10873028: Revert 152873 - Remove all the indexeddb-related utility process code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « no previous file | content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h » ('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 #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/notification_service_impl.h" 16 #include "content/browser/notification_service_impl.h"
16 #include "net/url_request/url_fetcher.h" 17 #include "net/url_request/url_fetcher.h"
17 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
18 19
19 namespace content { 20 namespace content {
20 21
21 BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier) 22 BrowserProcessSubThread::BrowserProcessSubThread(BrowserThread::ID identifier)
22 : BrowserThreadImpl(identifier), 23 : BrowserThreadImpl(identifier),
23 notification_service_(NULL) { 24 notification_service_(NULL) {
24 } 25 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif 63 #endif
63 } 64 }
64 65
65 void BrowserProcessSubThread::IOThreadPreCleanUp() { 66 void BrowserProcessSubThread::IOThreadPreCleanUp() {
66 // Kill all things that might be holding onto 67 // Kill all things that might be holding onto
67 // net::URLRequest/net::URLRequestContexts. 68 // net::URLRequest/net::URLRequestContexts.
68 69
69 // Destroy all URLRequests started by URLFetchers. 70 // Destroy all URLRequests started by URLFetchers.
70 net::URLFetcher::CancelAll(); 71 net::URLFetcher::CancelAll();
71 72
73 IndexedDBKeyUtilityClient::Shutdown();
74
72 // If any child processes are still running, terminate them and 75 // If any child processes are still running, terminate them and
73 // and delete the BrowserChildProcessHost instances to release whatever 76 // and delete the BrowserChildProcessHost instances to release whatever
74 // IO thread only resources they are referencing. 77 // IO thread only resources they are referencing.
75 BrowserChildProcessHostImpl::TerminateAll(); 78 BrowserChildProcessHostImpl::TerminateAll();
76 } 79 }
77 80
78 } // namespace content 81 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698