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

Unified Diff: trunk/src/content/public/browser/cookie_store_factory.h

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/content/public/browser/cookie_store_factory.h
===================================================================
--- trunk/src/content/public/browser/cookie_store_factory.h (revision 219785)
+++ trunk/src/content/public/browser/cookie_store_factory.h (working copy)
@@ -5,49 +5,25 @@
#ifndef CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
#define CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
-#include "base/files/file_path.h"
-#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
-#include "webkit/browser/quota/special_storage_policy.h"
+#include "net/cookies/cookie_monster.h"
namespace base {
class FilePath;
}
-namespace net {
-class CookieMonsterDelegate;
-class CookieStore;
+namespace quota {
+class SpecialStoragePolicy;
}
namespace content {
-struct CONTENT_EXPORT CookieStoreConfig {
- // Specifies how session cookies are persisted in the backing data store.
- enum SessionCookieMode {
- EPHEMERAL_SESSION_COOKIES,
- PERSISTANT_SESSION_COOKIES,
- RESTORED_SESSION_COOKIES
- };
+CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore(
+ const base::FilePath& path,
+ bool restore_old_session_cookies,
+ quota::SpecialStoragePolicy* storage_policy,
+ net::CookieMonster::Delegate* cookie_monster_delegate);
- // If |path| is empty, then this specifies an in-memory cookie store.
- // With in-memory cookie stores, |session_cookie_mode| must be
- // EPHEMERAL_SESSION_COOKIES.
- CookieStoreConfig();
- CookieStoreConfig(const base::FilePath& path,
- SessionCookieMode session_cookie_mode,
- quota::SpecialStoragePolicy* storage_policy,
- net::CookieMonsterDelegate* cookie_delegate);
- ~CookieStoreConfig();
-
- base::FilePath path;
- SessionCookieMode session_cookie_mode;
- scoped_refptr<quota::SpecialStoragePolicy> storage_policy;
- scoped_refptr<net::CookieMonsterDelegate> cookie_delegate;
-};
-
-CONTENT_EXPORT net::CookieStore* CreateCookieStore(
- const CookieStoreConfig& config);
-
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
« no previous file with comments | « trunk/src/content/public/browser/content_browser_client.cc ('k') | trunk/src/content/public/browser/storage_partition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698