| 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 610 |
| 611 // This constructor does canonicalization but not validation. | 611 // This constructor does canonicalization but not validation. |
| 612 // The result of this constructor should not be relied on in contexts | 612 // The result of this constructor should not be relied on in contexts |
| 613 // in which pre-validation of the ParsedCookie has not been done. | 613 // in which pre-validation of the ParsedCookie has not been done. |
| 614 CanonicalCookie(const GURL& url, const ParsedCookie& pc); | 614 CanonicalCookie(const GURL& url, const ParsedCookie& pc); |
| 615 | 615 |
| 616 ~CanonicalCookie(); | 616 ~CanonicalCookie(); |
| 617 | 617 |
| 618 // Supports the default copy constructor. | 618 // Supports the default copy constructor. |
| 619 | 619 |
| 620 // Creates a canonical cookie from parsed cookie. | |
| 621 // Canonicalizes and validates inputs. May return NULL if an attribute | |
| 622 // value is invalid. | |
| 623 static CanonicalCookie* Create(const GURL& url, | |
| 624 const ParsedCookie& pc); | |
| 625 | |
| 626 // Creates a canonical cookie from unparsed attribute values. | 620 // Creates a canonical cookie from unparsed attribute values. |
| 627 // Canonicalizes and validates inputs. May return NULL if an attribute | 621 // Canonicalizes and validates inputs. May return NULL if an attribute |
| 628 // value is invalid. | 622 // value is invalid. |
| 629 static CanonicalCookie* Create(const GURL& url, | 623 static CanonicalCookie* Create(const GURL& url, |
| 630 const std::string& name, | 624 const std::string& name, |
| 631 const std::string& value, | 625 const std::string& value, |
| 632 const std::string& domain, | 626 const std::string& domain, |
| 633 const std::string& path, | 627 const std::string& path, |
| 634 const std::string& mac_key, | 628 const std::string& mac_key, |
| 635 const std::string& mac_algorithm, | 629 const std::string& mac_algorithm, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 private: | 876 private: |
| 883 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 877 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
| 884 }; | 878 }; |
| 885 | 879 |
| 886 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 880 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
| 887 }; | 881 }; |
| 888 | 882 |
| 889 } // namespace net | 883 } // namespace net |
| 890 | 884 |
| 891 #endif // NET_BASE_COOKIE_MONSTER_H_ | 885 #endif // NET_BASE_COOKIE_MONSTER_H_ |
| OLD | NEW |