OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COOKIES_COOKIE_STORE_H_ | 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ |
8 #define NET_COOKIES_COOKIE_STORE_H_ | 8 #define NET_COOKIES_COOKIE_STORE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/time.h" | 16 #include "base/time/time.h" |
| 17 #include "net/base/net_export.h" |
17 #include "net/cookies/cookie_options.h" | 18 #include "net/cookies/cookie_options.h" |
18 #include "net/base/net_export.h" | |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 class CookieMonster; | 24 class CookieMonster; |
25 | 25 |
26 // An interface for storing and retrieving cookies. Implementations need to | 26 // An interface for storing and retrieving cookies. Implementations need to |
27 // be thread safe as its methods can be accessed from IO as well as UI threads. | 27 // be thread safe as its methods can be accessed from IO as well as UI threads. |
28 class NET_EXPORT CookieStore : public base::RefCountedThreadSafe<CookieStore> { | 28 class NET_EXPORT CookieStore : public base::RefCountedThreadSafe<CookieStore> { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 protected: | 76 protected: |
77 friend class base::RefCountedThreadSafe<CookieStore>; | 77 friend class base::RefCountedThreadSafe<CookieStore>; |
78 CookieStore(); | 78 CookieStore(); |
79 virtual ~CookieStore(); | 79 virtual ~CookieStore(); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace net | 82 } // namespace net |
83 | 83 |
84 #endif // NET_COOKIES_COOKIE_STORE_H_ | 84 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |