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

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

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 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
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/public/browser/browser_context.h" 5 #include "content/public/browser/browser_context.h"
6 6
7 #if !defined(OS_IOS) 7 #if !defined(OS_IOS)
8 #include "content/browser/appcache/chrome_appcache_service.h" 8 #include "content/browser/appcache/chrome_appcache_service.h"
9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 9 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
10 #include "content/browser/download/download_manager_impl.h" 10 #include "content/browser/download/download_manager_impl.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 scoped_refptr<IndexedDBContextImpl> indexed_db_context) { 86 scoped_refptr<IndexedDBContextImpl> indexed_db_context) {
87 indexed_db_context->SetForceKeepSessionState(); 87 indexed_db_context->SetForceKeepSessionState();
88 } 88 }
89 89
90 void PurgeMemoryOnIOThread(appcache::AppCacheService* appcache_service) { 90 void PurgeMemoryOnIOThread(appcache::AppCacheService* appcache_service) {
91 appcache_service->PurgeMemory(); 91 appcache_service->PurgeMemory();
92 } 92 }
93 93
94 } // namespace 94 } // namespace
95 95
96 // Choose something that isn't a legal URI scheme for the kDefaultCookieScheme.
97 const char BrowserContext::kDefaultCookieScheme[] = "1 default scheme";
98
96 // static 99 // static
97 void BrowserContext::AsyncObliterateStoragePartition( 100 void BrowserContext::AsyncObliterateStoragePartition(
98 BrowserContext* browser_context, 101 BrowserContext* browser_context,
99 const GURL& site, 102 const GURL& site,
100 const base::Closure& on_gc_required) { 103 const base::Closure& on_gc_required) {
101 GetStoragePartitionMap(browser_context)->AsyncObliterate(site, 104 GetStoragePartitionMap(browser_context)->AsyncObliterate(site,
102 on_gc_required); 105 on_gc_required);
103 } 106 }
104 107
105 // static 108 // static
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 269
267 #endif // !OS_IOS 270 #endif // !OS_IOS
268 271
269 BrowserContext::~BrowserContext() { 272 BrowserContext::~BrowserContext() {
270 #if !defined(OS_IOS) 273 #if !defined(OS_IOS)
271 if (GetUserData(kDownloadManagerKeyName)) 274 if (GetUserData(kDownloadManagerKeyName))
272 GetDownloadManager(this)->Shutdown(); 275 GetDownloadManager(this)->Shutdown();
273 #endif 276 #endif
274 } 277 }
275 278
279 bool BrowserContext::IsOffTheRecord() const {
280 return false;
281 }
282
276 } // namespace content 283 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698