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

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

Issue 11280030: Implement the ability to obliterate a storage partition from disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7368ebb665352d00cdd7cffca2b3dcbf816076b5 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -278,14 +278,22 @@ class CONTENT_EXPORT ContentBrowserClient {
// Allows the embedder to provide a storage parititon configuration for a
// site. A storage partition configuration includes a domain of the embedder's
// choice, an optional name within that domain, and whether the partition is
- // in-memory only. The |partition_domain| is [a-z]* UTF-8 string, specifying
- // the domain in which partitions live (similar to namespace). Within a
- // domain, partitions can be uniquely identified by the combination of
- // |partition_name| and |in_memory| values. When a partition is not to be
- // persisted, the |in_memory| value must be set to true.
+ // in-memory only.
+ //
+ // If |can_be_default| is false, the caller is telling the embedder that the
+ // |site| is known to not be in the default partition. This is useful in
+ // some shutdown situations where the bookkeeping logic that maps sites to
+ // their partition configuration are no longer valid.
+ //
+ // The |partition_domain| is [a-z]* UTF-8 string, specifying the domain in
+ // which partitions live (similar to namespace). Within a domain, partitions
+ // can be uniquely identified by the combination of |partition_name| and
+ // |in_memory| values. When a partition is not to be persisted, the
+ // |in_memory| value must be set to true.
virtual void GetStoragePartitionConfigForSite(
content::BrowserContext* browser_context,
const GURL& site,
+ bool can_be_default,
std::string* partition_domain,
std::string* partition_name,
bool* in_memory);
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698