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

Side by Side Diff: chrome/browser/views/cookie_info_view.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/net/chrome_cookie_policy.cc ('k') | chrome/browser/views/cookie_info_view.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) 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 #ifndef CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 public ComboboxModel { 41 public ComboboxModel {
42 public: 42 public:
43 explicit CookieInfoView(bool editable_expiration_date); 43 explicit CookieInfoView(bool editable_expiration_date);
44 virtual ~CookieInfoView(); 44 virtual ~CookieInfoView();
45 45
46 // Update the display from the specified CookieNode. 46 // Update the display from the specified CookieNode.
47 void SetCookie(const std::string& domain, 47 void SetCookie(const std::string& domain,
48 const net::CookieMonster::CanonicalCookie& cookie_node); 48 const net::CookieMonster::CanonicalCookie& cookie_node);
49 49
50 // Update the display from the specified cookie string. 50 // Update the display from the specified cookie string.
51 void SetCookieString(const std::string& host, 51 void SetCookieString(const GURL& url, const std::string& cookie_line);
52 const std::string& cookie_line);
53 52
54 // Clears the cookie display to indicate that no or multiple cookies are 53 // Clears the cookie display to indicate that no or multiple cookies are
55 // selected. 54 // selected.
56 void ClearCookieDisplay(); 55 void ClearCookieDisplay();
57 56
58 // Enables or disables the cookie property text fields. 57 // Enables or disables the cookie property text fields.
59 void EnableCookieDisplay(bool enabled); 58 void EnableCookieDisplay(bool enabled);
60 59
61 void set_delegate(CookieInfoViewDelegate* delegate) { delegate_ = delegate; } 60 void set_delegate(CookieInfoViewDelegate* delegate) { delegate_ = delegate; }
62 61
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // don't let user directly change cookie setting. 112 // don't let user directly change cookie setting.
114 bool editable_expiration_date_; 113 bool editable_expiration_date_;
115 114
116 CookieInfoViewDelegate* delegate_; 115 CookieInfoViewDelegate* delegate_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); 117 DISALLOW_COPY_AND_ASSIGN(CookieInfoView);
119 }; 118 };
120 119
121 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ 120 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_
122 121
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_cookie_policy.cc ('k') | chrome/browser/views/cookie_info_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698