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..1334a9cd68300c017631d009ff30ef203f0bd89f |
--- /dev/null |
+++ b/content/browser/net/cookie_store_map_impl.h |
@@ -0,0 +1,37 @@ |
+// 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/compiler_specific.h" |
+#include "base/memory/ref_counted.h" |
+#include "content/public/browser/cookie_store_map.h" |
+ |
+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; |
+ virtual CookieStoreMap* Clone() const OVERRIDE; |
+ |
+ 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_ |