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

Side by Side Diff: chrome/browser/interstitials/security_interstitial_page.h

Issue 1365733005: Split captive portal metrics out of SSLErrorClassification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compiler error fix possibly for realsies Created 5 years, 2 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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/interstitials/chrome_metrics_helper.cc ('k') | chrome/browser/interstitials/security_interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698