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 |
620 // Creates a canonical cookie from unparsed attribute values. | 626 // Creates a canonical cookie from unparsed attribute values. |
621 // Canonicalizes and validates inputs. May return NULL if an attribute | 627 // Canonicalizes and validates inputs. May return NULL if an attribute |
622 // value is invalid. | 628 // value is invalid. |
623 static CanonicalCookie* Create(const GURL& url, | 629 static CanonicalCookie* Create(const GURL& url, |
624 const std::string& name, | 630 const std::string& name, |
625 const std::string& value, | 631 const std::string& value, |
626 const std::string& domain, | 632 const std::string& domain, |
627 const std::string& path, | 633 const std::string& path, |
628 const std::string& mac_key, | 634 const std::string& mac_key, |
629 const std::string& mac_algorithm, | 635 const std::string& mac_algorithm, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 private: | 882 private: |
877 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 883 DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); |
878 }; | 884 }; |
879 | 885 |
880 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { | 886 class CookieList : public std::vector<CookieMonster::CanonicalCookie> { |
881 }; | 887 }; |
882 | 888 |
883 } // namespace net | 889 } // namespace net |
884 | 890 |
885 #endif // NET_BASE_COOKIE_MONSTER_H_ | 891 #endif // NET_BASE_COOKIE_MONSTER_H_ |
OLD | NEW |