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 the letter D and the number 2. | 5 // Brought to you by the letter D and the number 2. |
6 | 6 |
7 #ifndef NET_BASE_COOKIE_MONSTER_H_ | 7 #ifndef NET_BASE_COOKIE_MONSTER_H_ |
8 #define NET_BASE_COOKIE_MONSTER_H_ | 8 #define NET_BASE_COOKIE_MONSTER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 const std::string& value, | 156 const std::string& value, |
157 const std::string& domain, | 157 const std::string& domain, |
158 const std::string& path, | 158 const std::string& path, |
159 const base::Time& expiration_time, | 159 const base::Time& expiration_time, |
160 bool secure, bool http_only, | 160 bool secure, bool http_only, |
161 const SetCookiesCallback& callback); | 161 const SetCookiesCallback& callback); |
162 | 162 |
163 | 163 |
164 // Helper function that adds all cookies from |cookie_monster| into this | 164 // Helper function that adds all cookies from |cookie_monster| into this |
165 // instance. | 165 // instance. |
166 bool InitializeFrom(CookieMonster* cookie_monster); | 166 bool InitializeFrom(const CookieList& list); |
167 | 167 |
168 // Returns all the cookies, for use in management UI, etc. This does not mark | 168 // Returns all the cookies, for use in management UI, etc. This does not mark |
169 // the cookies as having been accessed. | 169 // the cookies as having been accessed. |
170 // The returned cookies are ordered by longest path, then by earliest | 170 // The returned cookies are ordered by longest path, then by earliest |
171 // creation date. | 171 // creation date. |
172 CookieList GetAllCookies(); | 172 CookieList GetAllCookies(); |
173 typedef base::Callback<void(const CookieList& cookies)> GetCookieListCallback; | 173 typedef base::Callback<void(const CookieList& cookies)> GetCookieListCallback; |
174 void GetAllCookiesAsync(const GetCookieListCallback& callback); | 174 void GetAllCookiesAsync(const GetCookieListCallback& callback); |
175 | 175 |
176 // Returns all the cookies, for use in management UI, etc. Filters results | 176 // Returns all the cookies, for use in management UI, etc. Filters results |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 private: | 876 private: |
877 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 877 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
878 }; | 878 }; |
879 | 879 |
880 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 880 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
881 }; | 881 }; |
882 | 882 |
883 } // namespace net | 883 } // namespace net |
884 | 884 |
885 #endif // NET_BASE_COOKIE_MONSTER_H_ | 885 #endif // NET_BASE_COOKIE_MONSTER_H_ |
OLD | NEW |