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

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

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
99 // static 96 // static
100 void BrowserContext::AsyncObliterateStoragePartition( 97 void BrowserContext::AsyncObliterateStoragePartition(
101 BrowserContext* browser_context, 98 BrowserContext* browser_context,
102 const GURL& site, 99 const GURL& site,
103 const base::Closure& on_gc_required) { 100 const base::Closure& on_gc_required) {
104 GetStoragePartitionMap(browser_context)->AsyncObliterate(site, 101 GetStoragePartitionMap(browser_context)->AsyncObliterate(site,
105 on_gc_required); 102 on_gc_required);
106 } 103 }
107 104
108 // static 105 // static
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 266
270 #endif // !OS_IOS 267 #endif // !OS_IOS
271 268
272 BrowserContext::~BrowserContext() { 269 BrowserContext::~BrowserContext() {
273 #if !defined(OS_IOS) 270 #if !defined(OS_IOS)
274 if (GetUserData(kDownloadManagerKeyName)) 271 if (GetUserData(kDownloadManagerKeyName))
275 GetDownloadManager(this)->Shutdown(); 272 GetDownloadManager(this)->Shutdown();
276 #endif 273 #endif
277 } 274 }
278 275
279 bool BrowserContext::IsOffTheRecord() const {
280 return false;
281 }
282
283 } // namespace content 276 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698