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

Unified Diff: content/browser/net/cookie_store_map_impl.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/browser/net/cookie_store_map_impl.h
diff --git a/content/browser/net/cookie_store_map_impl.h b/content/browser/net/cookie_store_map_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..6e1662fcdfe31c56cfc0a37a04216ccb2cce7913
--- /dev/null
+++ b/content/browser/net/cookie_store_map_impl.h
@@ -0,0 +1,52 @@
+// 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 CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_
+#define CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_
+
+#include <map>
+
+#include "base/callback_forward.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "base/time/time.h"
+#include "content/public/browser/cookie_store_map.h"
+
+class GURL;
+
+namespace content {
+
+class CookieStoreMapImpl : public CookieStoreMap {
+ public:
+ CookieStoreMapImpl();
+ virtual ~CookieStoreMapImpl();
+
+ // CookieStoreMap overrides:
+ virtual net::CookieStore* GetForScheme(
+ const std::string& scheme) const OVERRIDE;
+ virtual void SetForScheme(const std::string& scheme,
+ net::CookieStore* cookie_store) OVERRIDE;
+
+ // Clears cookies matching the specified parameters from all CookieStores
+ // contained in this map. Call |done| all CookieStores have been cleared.
Matt Perry 2013/08/07 21:48:56 Calls* |done| when* all...
awong 2013/08/16 00:54:54 Done.
+ // |done| is guaranteed to be run on the calling thread.
+ void DeleteCookies(const GURL& origin,
+ const base::Time begin,
+ const base::Time end,
+ const base::Closure& done);
+
+ // Makes a clone of the map. Useful if the map needs to be copied to another
+ // thread.
+ CookieStoreMapImpl* Clone() const;
+
+ private:
+ typedef std::map<std::string, scoped_refptr<net::CookieStore> > MapType;
+ MapType scheme_map_;
+
+ DISALLOW_COPY_AND_ASSIGN(CookieStoreMapImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698