| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Gets all cookies that apply to |url| given |options|. | 140 // Gets all cookies that apply to |url| given |options|. |
| 141 // The returned cookies are ordered by longest path, then earliest | 141 // The returned cookies are ordered by longest path, then earliest |
| 142 // creation date. | 142 // creation date. |
| 143 virtual std::string GetCookiesWithOptions(const GURL& url, | 143 virtual std::string GetCookiesWithOptions(const GURL& url, |
| 144 const CookieOptions& options); | 144 const CookieOptions& options); |
| 145 | 145 |
| 146 // Deletes all cookies with that might apply to |url| that has |cookie_name|. | 146 // Deletes all cookies with that might apply to |url| that has |cookie_name|. |
| 147 virtual void DeleteCookie(const GURL& url, const std::string& cookie_name); | 147 virtual void DeleteCookie(const GURL& url, const std::string& cookie_name); |
| 148 | 148 |
| 149 virtual CookieMonster* GetCookieMonster() { return this; } | 149 virtual CookieMonster* GetCookieMonster(); |
| 150 | 150 |
| 151 // Sets a cookie given explicit user-provided cookie attributes. The cookie | 151 // Sets a cookie given explicit user-provided cookie attributes. The cookie |
| 152 // name, value, domain, etc. are each provided as separate strings. This | 152 // name, value, domain, etc. are each provided as separate strings. This |
| 153 // function expects each attribute to be well-formed. It will check for | 153 // function expects each attribute to be well-formed. It will check for |
| 154 // disallowed characters (e.g. the ';' character is disallowed within the | 154 // disallowed characters (e.g. the ';' character is disallowed within the |
| 155 // cookie value attribute) and will return false without setting the cookie | 155 // cookie value attribute) and will return false without setting the cookie |
| 156 // if such characters are found. | 156 // if such characters are found. |
| 157 bool SetCookieWithDetails(const GURL& url, | 157 bool SetCookieWithDetails(const GURL& url, |
| 158 const std::string& name, | 158 const std::string& name, |
| 159 const std::string& value, | 159 const std::string& value, |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 private: | 706 private: |
| 707 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 707 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 708 }; | 708 }; |
| 709 | 709 |
| 710 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 710 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
| 711 }; | 711 }; |
| 712 | 712 |
| 713 } // namespace net | 713 } // namespace net |
| 714 | 714 |
| 715 #endif // NET_BASE_COOKIE_MONSTER_H_ | 715 #endif // NET_BASE_COOKIE_MONSTER_H_ |
| OLD | NEW |