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

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

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile gdi. Created 7 years, 4 months 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 cbac82f4df85a73933bc7173f56d62980ae3cdf6..4c0c290589bf9aceb66bcb1a58b6151df2ea6c74 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -31,6 +31,7 @@ class SpecialStoragePolicy;
namespace content {
+class CookieStoreMap;
class DownloadManager;
class DownloadManagerDelegate;
class GeolocationPermissionContext;
@@ -38,6 +39,7 @@ class IndexedDBContext;
class ResourceContext;
class SiteInstance;
class StoragePartition;
+struct CookieStoreConfig;
// This class holds the context needed for a browsing session.
// It lives on the UI thread. All these methods must only be called on the UI
@@ -71,8 +73,9 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
scoped_ptr<base::hash_set<base::FilePath> > active_paths,
const base::Closure& done);
- // DON'T USE THIS. GetDefaultStoragePartition() is going away.
- // Use GetStoragePartition() instead. Ask ajwong@ if you have problems.
+ // Prefer GetStoragePartition() or GetStoragePartitionForSite() above. Only
+ // use this if it is 100% certain that the cookie store, cache, etc., that
+ // is returned by this will be the correct one.
static content::StoragePartition* GetDefaultStoragePartition(
BrowserContext* browser_context);
@@ -98,6 +101,10 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// Return whether this context is incognito. Default is false.
virtual bool IsOffTheRecord() const = 0;
+ // Retrieves configuration parameters for CookieStores created by this
+ // BrowserContext.
+ virtual CookieStoreConfig GetCookieStoreConfig() = 0;
+
// Returns the request context information associated with this context. Call
// this only on the UI thread, since it can send notifications that should
// happen on the UI thread.
@@ -149,6 +156,13 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// Returns a special storage policy implementation, or NULL.
virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
+
+ // Allow the embedder to override the cookie store based on the scheme.
+ virtual void OverrideCookieStoreMap(
+ bool in_memory,
+ const base::FilePath& partition_path,
+ bool is_default,
+ CookieStoreMap* cookie_store_map) {}
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698