OLD | NEW |
---|---|
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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/task/cancelable_task_tracker.h" | 10 #include "base/task/cancelable_task_tracker.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 | 86 |
87 // Callback used for requests to fetch the number of page visits from history | 87 // Callback used for requests to fetch the number of page visits from history |
88 // service and the time of the first visit. | 88 // service and the time of the first visit. |
89 void OnGotVisitCountToHost(bool found_visits, | 89 void OnGotVisitCountToHost(bool found_visits, |
90 int visit_count, | 90 int visit_count, |
91 base::Time first_visit); | 91 base::Time first_visit); |
92 | 92 |
93 // This method is called by the UI when the UI is closing. | 93 // This method is called by the UI when the UI is closing. |
94 void OnUIClosing(); | 94 void OnUIClosing(); |
95 | 95 |
96 // This method is called when the SSL decisions revoke button is pressed. | |
Peter Kasting
2014/08/22 22:44:00
Nit: "SSL decisions revoke button" feels a little
jww
2014/08/22 22:56:39
Done.
| |
97 void OnSSLDecisionsRevokeButtonPressed(); | |
98 | |
96 // Accessors. | 99 // Accessors. |
97 SiteConnectionStatus site_connection_status() const { | 100 SiteConnectionStatus site_connection_status() const { |
98 return site_connection_status_; | 101 return site_connection_status_; |
99 } | 102 } |
100 | 103 |
101 const GURL& site_url() const { return site_url_; } | 104 const GURL& site_url() const { return site_url_; } |
102 | 105 |
103 SiteIdentityStatus site_identity_status() const { | 106 SiteIdentityStatus site_identity_status() const { |
104 return site_identity_status_; | 107 return site_identity_status_; |
105 } | 108 } |
106 | 109 |
107 base::string16 site_connection_details() const { | 110 base::string16 site_connection_details() const { |
108 return site_connection_details_; | 111 return site_connection_details_; |
109 } | 112 } |
110 | 113 |
111 base::string16 site_identity_details() const { | 114 base::string16 site_identity_details() const { |
112 return site_identity_details_; | 115 return site_identity_details_; |
113 } | 116 } |
114 | 117 |
115 base::string16 organization_name() const { | 118 base::string16 organization_name() const { |
116 return organization_name_; | 119 return organization_name_; |
117 } | 120 } |
118 | 121 |
119 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate() { | |
120 return chrome_ssl_host_state_delegate_; | |
121 } | |
122 | |
123 // SiteDataObserver implementation. | 122 // SiteDataObserver implementation. |
124 virtual void OnSiteDataAccessed() OVERRIDE; | 123 virtual void OnSiteDataAccessed() OVERRIDE; |
125 | 124 |
126 private: | 125 private: |
127 // Initializes the |WebsiteSettings|. | 126 // Initializes the |WebsiteSettings|. |
128 void Init(Profile* profile, | 127 void Init(Profile* profile, |
129 const GURL& url, | 128 const GURL& url, |
130 const content::SSLStatus& ssl); | 129 const content::SSLStatus& ssl); |
131 | 130 |
132 // Sets (presents) the information about the site's permissions in the |ui_|. | 131 // Sets (presents) the information about the site's permissions in the |ui_|. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 // content settings (aka. site permissions). | 211 // content settings (aka. site permissions). |
213 HostContentSettingsMap* content_settings_; | 212 HostContentSettingsMap* content_settings_; |
214 | 213 |
215 // Used to request the number of page visits. | 214 // Used to request the number of page visits. |
216 base::CancelableTaskTracker visit_count_task_tracker_; | 215 base::CancelableTaskTracker visit_count_task_tracker_; |
217 | 216 |
218 // Service for managing SSL error page bypasses. Used to revoke bypass | 217 // Service for managing SSL error page bypasses. Used to revoke bypass |
219 // decisions by users. | 218 // decisions by users. |
220 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; | 219 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; |
221 | 220 |
221 bool did_revoke_user_ssl_decisions_; | |
222 | |
222 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 223 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
223 }; | 224 }; |
224 | 225 |
225 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 226 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
OLD | NEW |