OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Brought to you by number 42. | 5 // Brought to you by number 42. |
6 | 6 |
7 #ifndef NET_BASE_COOKIE_STORE_H_ | 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ |
8 #define NET_BASE_COOKIE_STORE_H_ | 8 #define NET_COOKIES_COOKIE_STORE_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "net/base/cookie_options.h" | 18 #include "net/cookies/cookie_options.h" |
19 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
20 | 20 |
21 class GURL; | 21 class GURL; |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 class CookieMonster; | 25 class CookieMonster; |
26 | 26 |
27 // An interface for storing and retrieving cookies. Implementations need to | 27 // An interface for storing and retrieving cookies. Implementations need to |
28 // be thread safe as its methods can be accessed from IO as well as UI threads. | 28 // be thread safe as its methods can be accessed from IO as well as UI threads. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual CookieMonster* GetCookieMonster() = 0; | 103 virtual CookieMonster* GetCookieMonster() = 0; |
104 | 104 |
105 protected: | 105 protected: |
106 friend class base::RefCountedThreadSafe<CookieStore>; | 106 friend class base::RefCountedThreadSafe<CookieStore>; |
107 CookieStore(); | 107 CookieStore(); |
108 virtual ~CookieStore(); | 108 virtual ~CookieStore(); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace net | 111 } // namespace net |
112 | 112 |
113 #endif // NET_BASE_COOKIE_STORE_H_ | 113 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |