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 <cstdint> | |
mmenke
2017/07/05 16:58:49
stdint.h?
Randy Smith (Not in Mondays)
2017/07/08 13:03:26
Done.
| |
10 #include <memory> | 11 #include <memory> |
11 #include <string> | 12 #include <string> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
15 #include "base/callback_list.h" | 16 #include "base/callback_list.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
18 #include "net/cookies/canonical_cookie.h" | 19 #include "net/cookies/canonical_cookie.h" |
19 #include "net/cookies/cookie_options.h" | 20 #include "net/cookies/cookie_options.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 // cookie. This function assumes that ChangeCause::EXPLICIT is a reason for | 63 // cookie. This function assumes that ChangeCause::EXPLICIT is a reason for |
63 // deletion. | 64 // deletion. |
64 static bool ChangeCauseIsDeletion(ChangeCause cause); | 65 static bool ChangeCauseIsDeletion(ChangeCause cause); |
65 | 66 |
66 // Callback definitions. | 67 // Callback definitions. |
67 typedef base::OnceCallback<void(const CookieList& cookies)> | 68 typedef base::OnceCallback<void(const CookieList& cookies)> |
68 GetCookieListCallback; | 69 GetCookieListCallback; |
69 typedef base::OnceCallback<void(const std::string& cookie)> | 70 typedef base::OnceCallback<void(const std::string& cookie)> |
70 GetCookiesCallback; | 71 GetCookiesCallback; |
71 typedef base::OnceCallback<void(bool success)> SetCookiesCallback; | 72 typedef base::OnceCallback<void(bool success)> SetCookiesCallback; |
72 typedef base::OnceCallback<void(int num_deleted)> DeleteCallback; | 73 typedef base::OnceCallback<void(uint32_t num_deleted)> DeleteCallback; |
73 | 74 |
74 typedef base::Callback<void(const CanonicalCookie& cookie, ChangeCause cause)> | 75 typedef base::Callback<void(const CanonicalCookie& cookie, ChangeCause cause)> |
75 CookieChangedCallback; | 76 CookieChangedCallback; |
76 typedef base::CallbackList<void(const CanonicalCookie& cookie, | 77 typedef base::CallbackList<void(const CanonicalCookie& cookie, |
77 ChangeCause cause)> | 78 ChangeCause cause)> |
78 CookieChangedCallbackList; | 79 CookieChangedCallbackList; |
79 typedef CookieChangedCallbackList::Subscription CookieChangedSubscription; | 80 typedef CookieChangedCallbackList::Subscription CookieChangedSubscription; |
80 typedef base::Callback<bool(const CanonicalCookie& cookie)> CookiePredicate; | 81 typedef base::Callback<bool(const CanonicalCookie& cookie)> CookiePredicate; |
81 | 82 |
82 virtual ~CookieStore(); | 83 virtual ~CookieStore(); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 int GetChannelIDServiceID(); | 256 int GetChannelIDServiceID(); |
256 | 257 |
257 protected: | 258 protected: |
258 CookieStore(); | 259 CookieStore(); |
259 int channel_id_service_id_; | 260 int channel_id_service_id_; |
260 }; | 261 }; |
261 | 262 |
262 } // namespace net | 263 } // namespace net |
263 | 264 |
264 #endif // NET_COOKIES_COOKIE_STORE_H_ | 265 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |