OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_ |
| 6 #define CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_ |
| 7 |
| 8 #include <map> |
| 9 |
| 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "content/public/browser/cookie_store_map.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class CookieStoreMapImpl : public CookieStoreMap { |
| 17 public: |
| 18 CookieStoreMapImpl(); |
| 19 virtual ~CookieStoreMapImpl(); |
| 20 |
| 21 // CookieStoreMap overrides: |
| 22 virtual net::CookieStore* GetForScheme( |
| 23 const std::string& scheme) const OVERRIDE; |
| 24 virtual void SetForScheme(const std::string& scheme, |
| 25 net::CookieStore* cookie_store) OVERRIDE; |
| 26 virtual CookieStoreMap* Clone() const OVERRIDE; |
| 27 |
| 28 private: |
| 29 typedef std::map<std::string, scoped_refptr<net::CookieStore> > MapType; |
| 30 MapType scheme_map_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(CookieStoreMapImpl); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_ |
OLD | NEW |