Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: net/base/cookie_monster.h

Issue 7595007: Revert 95825 - Update asynchronous CookieMonster API to login_utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(const CookieList& list); 166 bool InitializeFrom(CookieMonster* cookie_monster);
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698