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