| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 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 | 9 | 
| 10 #include <map> | 10 #include <map> | 
| 11 #include <string> | 11 #include <string> | 
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 311       : name_(name), | 311       : name_(name), | 
| 312         value_(value), | 312         value_(value), | 
| 313         path_(path), | 313         path_(path), | 
| 314         creation_date_(creation), | 314         creation_date_(creation), | 
| 315         last_access_date_(last_access), | 315         last_access_date_(last_access), | 
| 316         expiry_date_(expires), | 316         expiry_date_(expires), | 
| 317         has_expires_(has_expires), | 317         has_expires_(has_expires), | 
| 318         secure_(secure), | 318         secure_(secure), | 
| 319         httponly_(httponly) { | 319         httponly_(httponly) { | 
| 320   } | 320   } | 
|  | 321   CanonicalCookie(const GURL& url, const ParsedCookie& pc); | 
| 321 | 322 | 
| 322   // Supports the default copy constructor. | 323   // Supports the default copy constructor. | 
| 323 | 324 | 
| 324   const std::string& Name() const { return name_; } | 325   const std::string& Name() const { return name_; } | 
| 325   const std::string& Value() const { return value_; } | 326   const std::string& Value() const { return value_; } | 
| 326   const std::string& Path() const { return path_; } | 327   const std::string& Path() const { return path_; } | 
| 327   const base::Time& CreationDate() const { return creation_date_; } | 328   const base::Time& CreationDate() const { return creation_date_; } | 
| 328   const base::Time& LastAccessDate() const { return last_access_date_; } | 329   const base::Time& LastAccessDate() const { return last_access_date_; } | 
| 329   bool DoesExpire() const { return has_expires_; } | 330   bool DoesExpire() const { return has_expires_; } | 
| 330   bool IsPersistent() const { return DoesExpire(); } | 331   bool IsPersistent() const { return DoesExpire(); } | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 382  protected: | 383  protected: | 
| 383   PersistentCookieStore() { } | 384   PersistentCookieStore() { } | 
| 384 | 385 | 
| 385  private: | 386  private: | 
| 386   DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 387   DISALLOW_COPY_AND_ASSIGN(PersistentCookieStore); | 
| 387 }; | 388 }; | 
| 388 | 389 | 
| 389 }  // namespace net | 390 }  // namespace net | 
| 390 | 391 | 
| 391 #endif  // NET_BASE_COOKIE_MONSTER_H_ | 392 #endif  // NET_BASE_COOKIE_MONSTER_H_ | 
| OLD | NEW | 
|---|