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

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

Issue 9909004: Fix some grammatical errors in comments in net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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 #pragma once 9 #pragma once
10 10
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 CHANGE_COOKIE_EXPIRED, 797 CHANGE_COOKIE_EXPIRED,
798 // The cookie was automatically evicted during garbage collection. 798 // The cookie was automatically evicted during garbage collection.
799 CHANGE_COOKIE_EVICTED, 799 CHANGE_COOKIE_EVICTED,
800 // The cookie was overwritten with an already-expired expiration date. 800 // The cookie was overwritten with an already-expired expiration date.
801 CHANGE_COOKIE_EXPIRED_OVERWRITE 801 CHANGE_COOKIE_EXPIRED_OVERWRITE
802 }; 802 };
803 803
804 // Will be called when a cookie is added or removed. The function is passed 804 // Will be called when a cookie is added or removed. The function is passed
805 // the respective |cookie| which was added to or removed from the cookies. 805 // the respective |cookie| which was added to or removed from the cookies.
806 // If |removed| is true, the cookie was deleted, and |cause| will be set 806 // If |removed| is true, the cookie was deleted, and |cause| will be set
807 // to the reason for it's removal. If |removed| is false, the cookie was 807 // to the reason for its removal. If |removed| is false, the cookie was
808 // added, and |cause| will be set to CHANGE_COOKIE_EXPLICIT. 808 // added, and |cause| will be set to CHANGE_COOKIE_EXPLICIT.
809 // 809 //
810 // As a special case, note that updating a cookie's properties is implemented 810 // As a special case, note that updating a cookie's properties is implemented
811 // as a two step process: the cookie to be updated is first removed entirely, 811 // as a two step process: the cookie to be updated is first removed entirely,
812 // generating a notification with cause CHANGE_COOKIE_OVERWRITE. Afterwards, 812 // generating a notification with cause CHANGE_COOKIE_OVERWRITE. Afterwards,
813 // a new cookie is written with the updated values, generating a notification 813 // a new cookie is written with the updated values, generating a notification
814 // with cause CHANGE_COOKIE_EXPLICIT. 814 // with cause CHANGE_COOKIE_EXPLICIT.
815 virtual void OnCookieChanged(const CookieMonster::CanonicalCookie& cookie, 815 virtual void OnCookieChanged(const CookieMonster::CanonicalCookie& cookie,
816 bool removed, 816 bool removed,
817 ChangeCause cause) = 0; 817 ChangeCause cause) = 0;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 private: 962 private:
963 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); 963 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore);
964 }; 964 };
965 965
966 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { 966 class CookieList : public std::vector<CookieMonster::CanonicalCookie> {
967 }; 967 };
968 968
969 } // namespace net 969 } // namespace net
970 970
971 #endif // NET_COOKIES_COOKIE_MONSTER_H_ 971 #endif // NET_COOKIES_COOKIE_MONSTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698