Index: content/browser/browser_context.cc |
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
index 79355bc3089bde7dda9c7c2caf68d33980c302ff..68a436664c7787004dfc5752bbdc528025f48b0a 100644 |
--- a/content/browser/browser_context.cc |
+++ b/content/browser/browser_context.cc |
@@ -94,8 +94,21 @@ void PurgeMemoryOnIOThread(appcache::AppCacheService* appcache_service) { |
// static |
void BrowserContext::AsyncObliterateStoragePartition( |
BrowserContext* browser_context, |
- const GURL& site) { |
- GetStoragePartitionMap(browser_context)->AsyncObliterate(site); |
+ const GURL& site, |
+ const base::Closure& on_gc_required) { |
+ GetStoragePartitionMap(browser_context)->AsyncObliterate(site, on_gc_required); |
Charlie Reis
2012/12/05 02:25:40
Long line.
|
+} |
+ |
+// static |
+void BrowserContext::GarbageCollectStoragePartitions( |
+ BrowserContext* browser_context, |
+ base::hash_set<FilePath>* active_paths, |
+ const base::Closure& done) { |
+ scoped_ptr<base::hash_set<FilePath> > scoped_active_paths( |
+ new base::hash_set<FilePath>()); |
+ scoped_active_paths->swap(*active_paths); |
+ GetStoragePartitionMap(browser_context)->GarbageCollect( |
+ scoped_active_paths.Pass(), done); |
} |
DownloadManager* BrowserContext::GetDownloadManager( |