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 <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
15 #include "base/callback_list.h" | 15 #include "base/callback_list.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/cookies/canonical_cookie.h" | 18 #include "net/cookies/canonical_cookie.h" |
19 #include "net/cookies/cookie_options.h" | 19 #include "net/cookies/cookie_options.h" |
20 | 20 |
21 class GURL; | 21 class GURL; |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 class CookieMonster; | |
26 | |
27 // An interface for storing and retrieving cookies. Implementations are not | 25 // An interface for storing and retrieving cookies. Implementations are not |
28 // thread safe, as with most other net classes. All methods must be invoked on | 26 // thread safe, as with most other net classes. All methods must be invoked on |
29 // the network thread, and all callbacks will be calle there. | 27 // the network thread, and all callbacks will be calle there. |
30 // | 28 // |
31 // All async functions may either invoke the callback asynchronously, or they | 29 // All async functions may either invoke the callback asynchronously, or they |
32 // may be invoked immediately (prior to return of the asynchronous function). | 30 // may be invoked immediately (prior to return of the asynchronous function). |
33 // Destroying the CookieStore will cancel pending async callbacks. | 31 // Destroying the CookieStore will cancel pending async callbacks. |
34 class NET_EXPORT CookieStore { | 32 class NET_EXPORT CookieStore { |
35 public: | 33 public: |
36 // The publicly relevant reasons a cookie might be changed. | 34 // The publicly relevant reasons a cookie might be changed. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 int GetChannelIDServiceID(); | 236 int GetChannelIDServiceID(); |
239 | 237 |
240 protected: | 238 protected: |
241 CookieStore(); | 239 CookieStore(); |
242 int channel_id_service_id_; | 240 int channel_id_service_id_; |
243 }; | 241 }; |
244 | 242 |
245 } // namespace net | 243 } // namespace net |
246 | 244 |
247 #endif // NET_COOKIES_COOKIE_STORE_H_ | 245 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |