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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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
« no previous file with comments | « net/cert/signed_certificate_timestamp_unittest.cc ('k') | net/cookies/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) 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 the letter D and the number 2. 5 // Brought to you by the letter D and the number 2.
6 6
7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_ 7 #ifndef NET_COOKIES_COOKIE_MONSTER_H_
8 #define NET_COOKIES_COOKIE_MONSTER_H_ 8 #define NET_COOKIES_COOKIE_MONSTER_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void FlushStore(const base::Closure& callback); 236 void FlushStore(const base::Closure& callback);
237 237
238 // CookieStore implementation. 238 // CookieStore implementation.
239 239
240 // Sets the cookies specified by |cookie_list| returned from |url| 240 // Sets the cookies specified by |cookie_list| returned from |url|
241 // with options |options| in effect. 241 // with options |options| in effect.
242 virtual void SetCookieWithOptionsAsync( 242 virtual void SetCookieWithOptionsAsync(
243 const GURL& url, 243 const GURL& url,
244 const std::string& cookie_line, 244 const std::string& cookie_line,
245 const CookieOptions& options, 245 const CookieOptions& options,
246 const SetCookiesCallback& callback) OVERRIDE; 246 const SetCookiesCallback& callback) override;
247 247
248 // Gets all cookies that apply to |url| given |options|. 248 // Gets all cookies that apply to |url| given |options|.
249 // The returned cookies are ordered by longest path, then earliest 249 // The returned cookies are ordered by longest path, then earliest
250 // creation date. 250 // creation date.
251 virtual void GetCookiesWithOptionsAsync( 251 virtual void GetCookiesWithOptionsAsync(
252 const GURL& url, 252 const GURL& url,
253 const CookieOptions& options, 253 const CookieOptions& options,
254 const GetCookiesCallback& callback) OVERRIDE; 254 const GetCookiesCallback& callback) override;
255 255
256 // Invokes GetAllCookiesForURLWithOptions with options set to include HTTP 256 // Invokes GetAllCookiesForURLWithOptions with options set to include HTTP
257 // only cookies. 257 // only cookies.
258 virtual void GetAllCookiesForURLAsync( 258 virtual void GetAllCookiesForURLAsync(
259 const GURL& url, 259 const GURL& url,
260 const GetCookieListCallback& callback) OVERRIDE; 260 const GetCookieListCallback& callback) override;
261 261
262 // Deletes all cookies with that might apply to |url| that has |cookie_name|. 262 // Deletes all cookies with that might apply to |url| that has |cookie_name|.
263 virtual void DeleteCookieAsync( 263 virtual void DeleteCookieAsync(
264 const GURL& url, const std::string& cookie_name, 264 const GURL& url, const std::string& cookie_name,
265 const base::Closure& callback) OVERRIDE; 265 const base::Closure& callback) override;
266 266
267 // Deletes all of the cookies that have a creation_date greater than or equal 267 // Deletes all of the cookies that have a creation_date greater than or equal
268 // to |delete_begin| and less than |delete_end|. 268 // to |delete_begin| and less than |delete_end|.
269 // Returns the number of cookies that have been deleted. 269 // Returns the number of cookies that have been deleted.
270 virtual void DeleteAllCreatedBetweenAsync( 270 virtual void DeleteAllCreatedBetweenAsync(
271 const base::Time& delete_begin, 271 const base::Time& delete_begin,
272 const base::Time& delete_end, 272 const base::Time& delete_end,
273 const DeleteCallback& callback) OVERRIDE; 273 const DeleteCallback& callback) override;
274 274
275 // Deletes all of the cookies that match the host of the given URL 275 // Deletes all of the cookies that match the host of the given URL
276 // regardless of path and that have a creation_date greater than or 276 // regardless of path and that have a creation_date greater than or
277 // equal to |delete_begin| and less then |delete_end|. This includes 277 // equal to |delete_begin| and less then |delete_end|. This includes
278 // all http_only and secure cookies, but does not include any domain 278 // all http_only and secure cookies, but does not include any domain
279 // cookies that may apply to this host. 279 // cookies that may apply to this host.
280 // Returns the number of cookies deleted. 280 // Returns the number of cookies deleted.
281 virtual void DeleteAllCreatedBetweenForHostAsync( 281 virtual void DeleteAllCreatedBetweenForHostAsync(
282 const base::Time delete_begin, 282 const base::Time delete_begin,
283 const base::Time delete_end, 283 const base::Time delete_end,
284 const GURL& url, 284 const GURL& url,
285 const DeleteCallback& callback) OVERRIDE; 285 const DeleteCallback& callback) override;
286 286
287 virtual void DeleteSessionCookiesAsync(const DeleteCallback&) OVERRIDE; 287 virtual void DeleteSessionCookiesAsync(const DeleteCallback&) override;
288 288
289 virtual CookieMonster* GetCookieMonster() OVERRIDE; 289 virtual CookieMonster* GetCookieMonster() override;
290 290
291 // Enables writing session cookies into the cookie database. If this this 291 // Enables writing session cookies into the cookie database. If this this
292 // method is called, it must be called before first use of the instance 292 // method is called, it must be called before first use of the instance
293 // (i.e. as part of the instance initialization process). 293 // (i.e. as part of the instance initialization process).
294 void SetPersistSessionCookies(bool persist_session_cookies); 294 void SetPersistSessionCookies(bool persist_session_cookies);
295 295
296 // Debugging method to perform various validation checks on the map. 296 // Debugging method to perform various validation checks on the map.
297 // Currently just checking that there are no null CanonicalCookie pointers 297 // Currently just checking that there are no null CanonicalCookie pointers
298 // in the map. 298 // in the map.
299 // Argument |arg| is to allow retaining of arbitrary data if the CHECKs 299 // Argument |arg| is to allow retaining of arbitrary data if the CHECKs
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 virtual ~PersistentCookieStore() {} 779 virtual ~PersistentCookieStore() {}
780 780
781 private: 781 private:
782 friend class base::RefCountedThreadSafe<PersistentCookieStore>; 782 friend class base::RefCountedThreadSafe<PersistentCookieStore>;
783 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 783 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
784 }; 784 };
785 785
786 } // namespace net 786 } // namespace net
787 787
788 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 788 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW
« no previous file with comments | « net/cert/signed_certificate_timestamp_unittest.cc ('k') | net/cookies/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698