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

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: merged 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..f2837f7aad2783b73b86ca74252ac74173d707df 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -7,6 +7,7 @@
#include "base/callback_forward.h"
#include "base/hash_tables.h"
+#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
#include "content/common/content_export.h"
@@ -52,7 +53,15 @@ 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.
+ static void GarbageCollectStoragePartitions(
+ BrowserContext* browser_context,
+ scoped_ptr<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