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

Side by Side Diff: chrome/browser/ssl/ssl_blocking_page.h

Issue 318213002: Add custom interstitial for captive portals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Const all the things Created 6 years, 6 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 | Annotate | Revision Log
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_SSL_SSL_BLOCKING_PAGE_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // content::NotificationObserver: 80 // content::NotificationObserver:
81 virtual void Observe( 81 virtual void Observe(
82 int type, 82 int type,
83 const content::NotificationSource& source, 83 const content::NotificationSource& source,
84 const content::NotificationDetails& details) OVERRIDE; 84 const content::NotificationDetails& details) OVERRIDE;
85 85
86 base::Callback<void(bool)> callback_; 86 base::Callback<void(bool)> callback_;
87 87
88 content::WebContents* web_contents_; 88 content::WebContents* web_contents_;
89 int cert_error_; 89 const int cert_error_;
90 const net::SSLInfo ssl_info_; 90 const net::SSLInfo ssl_info_;
91 GURL request_url_; 91 const GURL request_url_;
92 // Could the user successfully override the error? 92 // Could the user successfully override the error?
93 bool overridable_; 93 const bool overridable_;
94 // Has the site requested strict enforcement of certificate errors? 94 // Has the site requested strict enforcement of certificate errors?
95 bool strict_enforcement_; 95 const bool strict_enforcement_;
96 content::InterstitialPage* interstitial_page_; // Owns us. 96 content::InterstitialPage* interstitial_page_; // Owns us.
97 // Is the hostname for an internal network? 97 // Is the hostname for an internal network?
98 bool internal_; 98 bool internal_;
99 // How many times is this same URL in history? 99 // How many times is this same URL in history?
100 int num_visits_; 100 int num_visits_;
101 // Used for getting num_visits_. 101 // Used for getting num_visits_.
102 CancelableRequestConsumer request_consumer_; 102 CancelableRequestConsumer request_consumer_;
103 // Is captive portal detection enabled? 103 // Is captive portal detection enabled?
104 bool captive_portal_detection_enabled_; 104 bool captive_portal_detection_enabled_;
105 // Did the probe complete before the interstitial was closed? 105 // Did the probe complete before the interstitial was closed?
106 bool captive_portal_probe_completed_; 106 bool captive_portal_probe_completed_;
107 // Did the captive portal probe receive an error or get a non-HTTP response? 107 // Did the captive portal probe receive an error or get a non-HTTP response?
108 bool captive_portal_no_response_; 108 bool captive_portal_no_response_;
109 // Was a captive portal detected? 109 // Was a captive portal detected?
110 bool captive_portal_detected_; 110 bool captive_portal_detected_;
111 111
112 // For the FieldTrial: this contains the name of the condition. 112 // For the FieldTrial: this contains the name of the condition.
113 std::string trialCondition_; 113 std::string trialCondition_;
114 114
115 content::NotificationRegistrar registrar_; 115 content::NotificationRegistrar registrar_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 117 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 120 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698