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

Side by Side Diff: chrome/browser/ui/views/website_settings/website_settings_popup_view.h

Issue 1150173002: Remove the SCT viewer UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chrome/browser/ui/views/website_settings/permission_selector_view_obse rver.h" 13 #include "chrome/browser/ui/views/website_settings/permission_selector_view_obse rver.h"
14 #include "chrome/browser/ui/website_settings/website_settings_ui.h" 14 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
15 #include "content/public/common/signed_certificate_timestamp_id_and_status.h"
16 #include "ui/views/bubble/bubble_delegate.h" 15 #include "ui/views/bubble/bubble_delegate.h"
17 #include "ui/views/controls/button/button.h" 16 #include "ui/views/controls/button/button.h"
18 #include "ui/views/controls/button/label_button.h" 17 #include "ui/views/controls/button/label_button.h"
19 #include "ui/views/controls/link_listener.h" 18 #include "ui/views/controls/link_listener.h"
20 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" 19 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h"
21 20
22 class Browser; 21 class Browser;
23 class GURL; 22 class GURL;
24 class PermissionSelectorView; 23 class PermissionSelectorView;
25 class PopupHeaderView; 24 class PopupHeaderView;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // are cleared and destroyed first. Then the |icon|, |headline|, |text|, 111 // are cleared and destroyed first. Then the |icon|, |headline|, |text|,
113 // |link|, and |secondary_link| are laid out properly. If the |headline| is an 112 // |link|, and |secondary_link| are laid out properly. If the |headline| is an
114 // empty string then no headline will be displayed. Ownership of |link| and 113 // empty string then no headline will be displayed. Ownership of |link| and
115 // |secondary_link| is transfered to the ResetConnectionSection method and the 114 // |secondary_link| is transfered to the ResetConnectionSection method and the
116 // links are added to the views hierarchy. NULL links are not displayed. 115 // links are added to the views hierarchy. NULL links are not displayed.
117 void ResetConnectionSection(views::View* section_container, 116 void ResetConnectionSection(views::View* section_container,
118 const gfx::Image& icon, 117 const gfx::Image& icon,
119 const base::string16& headline, 118 const base::string16& headline,
120 const base::string16& text, 119 const base::string16& text,
121 views::Link* link, 120 views::Link* link,
122 views::Link* secondary_link,
123 views::LabelButton* reset_decisions_button); 121 views::LabelButton* reset_decisions_button);
124 122
125 // Used to asynchronously handle clicks since these calls may cause the 123 // Used to asynchronously handle clicks since these calls may cause the
126 // destruction of the settings view and the base class window still needs to 124 // destruction of the settings view and the base class window still needs to
127 // be alive to finish handling the mouse or keyboard click. 125 // be alive to finish handling the mouse or keyboard click.
128 void HandleLinkClickedAsync(views::Link* source); 126 void HandleLinkClickedAsync(views::Link* source);
129 127
130 // The web contents of the current tab. The popup can't live longer than a 128 // The web contents of the current tab. The popup can't live longer than a
131 // tab. 129 // tab.
132 content::WebContents* web_contents_; 130 content::WebContents* web_contents_;
(...skipping 22 matching lines...) Expand all
155 153
156 // The view that contains the connection tab contents. 154 // The view that contains the connection tab contents.
157 views::View* connection_tab_; 155 views::View* connection_tab_;
158 // The view that contains the UI elements for displaying information about 156 // The view that contains the UI elements for displaying information about
159 // the site's identity. 157 // the site's identity.
160 views::View* identity_info_content_; 158 views::View* identity_info_content_;
161 // The link to open the certificate viewer for displaying the certificate 159 // The link to open the certificate viewer for displaying the certificate
162 // provided by the website. If the site does not provide a certificate then 160 // provided by the website. If the site does not provide a certificate then
163 // |certificate_dialog_link_| is NULL. 161 // |certificate_dialog_link_| is NULL.
164 views::Link* certificate_dialog_link_; 162 views::Link* certificate_dialog_link_;
165 // The link to open the signed certificate timestamps viewer for displaying
166 // Certificate Transparency info. If no such SCTs accompany the certificate
167 // then |signed_certificate_timestamps_link_| is NULL.
168 views::Link* signed_certificate_timestamps_link_;
169 // The button to reset the Allow/Deny certificate errors decision for the 163 // The button to reset the Allow/Deny certificate errors decision for the
170 // current host. 164 // current host.
171 views::LabelButton* reset_decisions_button_; 165 views::LabelButton* reset_decisions_button_;
172 166
173 // The ID of the certificate provided by the site. If the site does not 167 // The ID of the certificate provided by the site. If the site does not
174 // provide a certificate then |cert_id_| is 0. 168 // provide a certificate then |cert_id_| is 0.
175 int cert_id_; 169 int cert_id_;
176 // The IDs and validation status of Signed Certificate Timestamps provided
177 // by the site. Empty if no SCTs accompany the certificate.
178 content::SignedCertificateTimestampIDStatusList
179 signed_certificate_timestamp_ids_;
180 170
181 // The link to open the help center page that contains more information about 171 // The link to open the help center page that contains more information about
182 // the connection status icons. 172 // the connection status icons.
183 views::Link* help_center_link_; 173 views::Link* help_center_link_;
184 174
185 // The link to open the site settings page that provides full control over 175 // The link to open the site settings page that provides full control over
186 // the origin's permissions. 176 // the origin's permissions.
187 views::Link* site_settings_link_; 177 views::Link* site_settings_link_;
188 178
189 views::View* connection_info_content_; 179 views::View* connection_info_content_;
190 views::View* page_info_content_; 180 views::View* page_info_content_;
191 181
192 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; 182 base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_;
193 183
194 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); 184 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView);
195 }; 185 };
196 186
197 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_ 187 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698