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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Creates a WebsiteSettings for the passed |url| using the given |ssl| status | 74 // Creates a WebsiteSettings for the passed |url| using the given |ssl| status |
75 // object to determine the status of the site's connection. The | 75 // object to determine the status of the site's connection. The |
76 // |WebsiteSettings| takes ownership of the |ui|. | 76 // |WebsiteSettings| takes ownership of the |ui|. |
77 WebsiteSettings(WebsiteSettingsUI* ui, | 77 WebsiteSettings(WebsiteSettingsUI* ui, |
78 Profile* profile, | 78 Profile* profile, |
79 TabSpecificContentSettings* tab_specific_content_settings, | 79 TabSpecificContentSettings* tab_specific_content_settings, |
80 InfoBarService* infobar_service, | 80 InfoBarService* infobar_service, |
81 const GURL& url, | 81 const GURL& url, |
82 const content::SSLStatus& ssl, | 82 const content::SSLStatus& ssl, |
83 content::CertStore* cert_store); | 83 content::CertStore* cert_store); |
84 virtual ~WebsiteSettings(); | 84 ~WebsiteSettings() override; |
85 | 85 |
86 // This method is called when ever a permission setting is changed. | 86 // This method is called when ever a permission setting is changed. |
87 void OnSitePermissionChanged(ContentSettingsType type, | 87 void OnSitePermissionChanged(ContentSettingsType type, |
88 ContentSetting value); | 88 ContentSetting value); |
89 | 89 |
90 // Callback used for requests to fetch the number of page visits from history | 90 // Callback used for requests to fetch the number of page visits from history |
91 // service and the time of the first visit. | 91 // service and the time of the first visit. |
92 void OnGotVisitCountToHost(bool found_visits, | 92 void OnGotVisitCountToHost(bool found_visits, |
93 int visit_count, | 93 int visit_count, |
94 base::Time first_visit); | 94 base::Time first_visit); |
(...skipping 21 matching lines...) Expand all Loading... |
116 | 116 |
117 base::string16 site_identity_details() const { | 117 base::string16 site_identity_details() const { |
118 return site_identity_details_; | 118 return site_identity_details_; |
119 } | 119 } |
120 | 120 |
121 base::string16 organization_name() const { | 121 base::string16 organization_name() const { |
122 return organization_name_; | 122 return organization_name_; |
123 } | 123 } |
124 | 124 |
125 // SiteDataObserver implementation. | 125 // SiteDataObserver implementation. |
126 virtual void OnSiteDataAccessed() override; | 126 void OnSiteDataAccessed() override; |
127 | 127 |
128 private: | 128 private: |
129 // Initializes the |WebsiteSettings|. | 129 // Initializes the |WebsiteSettings|. |
130 void Init(Profile* profile, | 130 void Init(Profile* profile, |
131 const GURL& url, | 131 const GURL& url, |
132 const content::SSLStatus& ssl); | 132 const content::SSLStatus& ssl); |
133 | 133 |
134 // Sets (presents) the information about the site's permissions in the |ui_|. | 134 // Sets (presents) the information about the site's permissions in the |ui_|. |
135 void PresentSitePermissions(); | 135 void PresentSitePermissions(); |
136 | 136 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Service for managing SSL error page bypasses. Used to revoke bypass | 220 // Service for managing SSL error page bypasses. Used to revoke bypass |
221 // decisions by users. | 221 // decisions by users. |
222 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; | 222 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; |
223 | 223 |
224 bool did_revoke_user_ssl_decisions_; | 224 bool did_revoke_user_ssl_decisions_; |
225 | 225 |
226 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 226 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
227 }; | 227 }; |
228 | 228 |
229 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 229 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
OLD | NEW |