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

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

Issue 11362268: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work around race on extension uninstall Created 8 years, 1 month 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 228e4eefb5a534f7cd5a91f543de958f857e3c49..7613757d56189d4ae82431ef021059b77acac143 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -290,6 +290,24 @@ class CONTENT_EXPORT ContentBrowserClient {
std::string* partition_name,
bool* in_memory);
+ // Similar to GetStoragePartitionConfigForSite(), but assumes it should
+ // parse |site| as if it were not in the default StoragePartition.
+ //
+ // If the embedder modifies the configuration of |site| so that it no
+ // longer has a non-default config there is a race where
+ // GetStoragePartitionConfigForSite() will no longer return the isolated
+ // configuration, but the embedder still needs to invoke cleanup code
+ // (such as data deleters) need to access the previous configuration.
Charlie Reis 2012/11/16 01:45:10 nit: that need
awong 2012/11/16 02:56:10 Function removed.
+ //
+ // This function is exposed for use by cleanup code. This is needed because
+ // |site| has insufficient information to know whether or not it was
+ // part of the default StoragePartition.
+ virtual void ParseNonDefaultStoragePartitionConfig(
Charlie Reis 2012/11/16 01:45:10 This is too complex to expose as its own function
awong 2012/11/16 02:56:10 Went with your solution.
+ const GURL& site,
+ std::string* partition_domain,
+ std::string* partition_name,
+ bool* in_memory);
+
// Create and return a new quota permission context.
virtual QuotaPermissionContext* CreateQuotaPermissionContext();

Powered by Google App Engine
This is Rietveld 408576698