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

Unified Diff: content/public/browser/browser_context.h

Issue 11419307: Garbage Collect the Storage directory on next profile start after an extension uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Basic code done. Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index ff4446f3843b51eae0726f78fae2262642a48f06..5e2b37f8aa0343e2107f0a07f2b23accc48faa1f 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -52,7 +52,17 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
const StoragePartitionCallback& callback);
static void AsyncObliterateStoragePartition(
BrowserContext* browser_context,
- const GURL& site);
+ const GURL& site,
+ const base::Closure& on_gc_required);
+
+ // This function clears the contents of |active_paths| but does not take
+ // ownership of the pointer.
+ //
+ // TODO(ajwong): Don't hide the malloc via this API.
+ static void GarbageCollectStoragePartitions(
+ BrowserContext* browser_context,
+ base::hash_set<FilePath>* active_paths,
+ const base::Closure& done);
// DON'T USE THIS. GetDefaultStoragePartition() is going away.
// Use GetStoragePartition() instead. Ask ajwong@ if you have problems.

Powered by Google App Engine
This is Rietveld 408576698