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

Unified Diff: chrome/browser/net/cookie_store_util.h

Issue 110883017: Add CookieStoreConfig to unify API for in-memory and persistent CookieStore Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge ToT again. Created 6 years, 11 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
« no previous file with comments | « chrome/browser/net/connection_tester_unittest.cc ('k') | chrome/browser/net/cookie_store_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/cookie_store_util.h
diff --git a/chrome/browser/net/cookie_store_util.h b/chrome/browser/net/cookie_store_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d7b128341991d00cfcd09f16a4d96ab4adb223d
--- /dev/null
+++ b/chrome/browser/net/cookie_store_util.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
+#define CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
+
+#include "content/public/browser/browser_context.h"
+#include "content/public/browser/cookie_store_factory.h"
+
+class Profile;
+
+namespace net {
+class CookieMonsterDelegate;
+} // namespace net
+
+namespace chrome_browser_net {
+
+// Returns true if cookie-like storage systems should enter record mode for
+// debugging.
+bool IsCookieRecordMode();
+
+// Returns true if command line flags indicate that cookie-like storage systems
+// should be forced to be in memory only.
+bool ShouldUseInMemoryCookiesAndCache();
+
+// Factory method for creating a CookieStore delegate that sends
+// chrome::NOTIFICATION_COOKIE_CHANGED for the given profile. This
+// delegate is stateless so only one is necessary per profile.
+net::CookieMonsterDelegate* CreateCookieDelegate(Profile* profile);
+
+// Factory method for returning a CookieCryptoDelegate if one is appropriate for
+// this platform. The object returned is a LazyInstance. Ownership is not
+// transferred.
+content::CookieCryptoDelegate* GetCookieCryptoDelegate();
+
+} // namespace chrome_browser_net
+
+#endif // CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
« no previous file with comments | « chrome/browser/net/connection_tester_unittest.cc ('k') | chrome/browser/net/cookie_store_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698