| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |