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 29 matching lines...) Expand all Loading... |
40 public views::Combobox::Listener, | 40 public views::Combobox::Listener, |
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. |
| 51 void SetCookieString(const std::string& domain, |
| 52 const net::CookieMonster::ParsedCookie& cookie); |
| 53 |
50 // Clears the cookie display to indicate that no or multiple cookies are | 54 // Clears the cookie display to indicate that no or multiple cookies are |
51 // selected. | 55 // selected. |
52 void ClearCookieDisplay(); | 56 void ClearCookieDisplay(); |
53 | 57 |
54 // Enables or disables the cookie property text fields. | 58 // Enables or disables the cookie property text fields. |
55 void EnableCookieDisplay(bool enabled); | 59 void EnableCookieDisplay(bool enabled); |
56 | 60 |
57 void set_delegate(CookieInfoViewDelegate* delegate) { delegate_ = delegate; } | 61 void set_delegate(CookieInfoViewDelegate* delegate) { delegate_ = delegate; } |
58 | 62 |
59 protected: | 63 protected: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // don't let user directly change cookie setting. | 113 // don't let user directly change cookie setting. |
110 bool editable_expiration_date_; | 114 bool editable_expiration_date_; |
111 | 115 |
112 CookieInfoViewDelegate* delegate_; | 116 CookieInfoViewDelegate* delegate_; |
113 | 117 |
114 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); | 118 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); |
115 }; | 119 }; |
116 | 120 |
117 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ | 121 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ |
118 | 122 |
OLD | NEW |