OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ | 5 #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |
6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ | 6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/public/browser/interstitial_page_delegate.h" | 9 #include "content/public/browser/interstitial_page_delegate.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void SetReportingPreference(bool report); | 92 void SetReportingPreference(bool report); |
93 | 93 |
94 // Returns the boolean value of the given |pref| from the PrefService of the | 94 // Returns the boolean value of the given |pref| from the PrefService of the |
95 // Profile associated with |web_contents_|. | 95 // Profile associated with |web_contents_|. |
96 bool IsPrefEnabled(const char* pref); | 96 bool IsPrefEnabled(const char* pref); |
97 | 97 |
98 void OpenExtendedReportingPrivacyPolicy(); | 98 void OpenExtendedReportingPrivacyPolicy(); |
99 | 99 |
100 security_interstitials::MetricsHelper* metrics_helper() const; | 100 security_interstitials::MetricsHelper* metrics_helper() const; |
101 void set_metrics_helper( | 101 void set_metrics_helper( |
102 security_interstitials::MetricsHelper* metrics_helper); | 102 scoped_ptr<security_interstitials::MetricsHelper> metrics_helper); |
103 | 103 |
104 private: | 104 private: |
105 scoped_ptr<security_interstitials::MetricsHelper> metrics_helper_; | 105 scoped_ptr<security_interstitials::MetricsHelper> metrics_helper_; |
106 // The WebContents with which this interstitial page is | 106 // The WebContents with which this interstitial page is |
107 // associated. Not available in ~SecurityInterstitialPage, since it | 107 // associated. Not available in ~SecurityInterstitialPage, since it |
108 // can be destroyed before this class is destroyed. | 108 // can be destroyed before this class is destroyed. |
109 content::WebContents* web_contents_; | 109 content::WebContents* web_contents_; |
110 const GURL request_url_; | 110 const GURL request_url_; |
111 // Once shown, |interstitial_page| takes ownership of this | 111 // Once shown, |interstitial_page| takes ownership of this |
112 // SecurityInterstitialPage instance. | 112 // SecurityInterstitialPage instance. |
113 content::InterstitialPage* interstitial_page_; | 113 content::InterstitialPage* interstitial_page_; |
114 // Whether the interstitial should create a view. | 114 // Whether the interstitial should create a view. |
115 bool create_view_; | 115 bool create_view_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); | 117 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); |
118 }; | 118 }; |
119 | 119 |
120 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ | 120 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |
OLD | NEW |