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

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

Issue 597031: Avoid showing the user a garbage path attribute when the cookie doesn't have ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/browser/views/cookie_prompt_view.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/views/cookie_prompt_view.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698