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

Side by Side Diff: chrome/browser/views/cookie_info_view.h

Issue 560030: Refactored out JS specific part of modal dialog stack into its own class, exp... (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/tab_contents/tab_contents.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 29 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/views/cookie_info_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698