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

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

Issue 664503006: Implementation of the full clock interstitial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed comment wrapping for Chris. :-) Created 6 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 (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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // Used to query the HistoryService to see if the URL is in history. For UMA. 96 // Used to query the HistoryService to see if the URL is in history. For UMA.
97 void OnGotHistoryCount(bool success, int num_visits, base::Time first_visit); 97 void OnGotHistoryCount(bool success, int num_visits, base::Time first_visit);
98 98
99 base::Callback<void(bool)> callback_; 99 base::Callback<void(bool)> callback_;
100 100
101 content::WebContents* web_contents_; 101 content::WebContents* web_contents_;
102 const int cert_error_; 102 const int cert_error_;
103 const net::SSLInfo ssl_info_; 103 const net::SSLInfo ssl_info_;
104 const GURL request_url_; 104 const GURL request_url_;
105 // Could the user successfully override the error? 105 // There are two ways for the user to override an interstitial:
106 // overridable_ will be set to false if strict_enforcement_ is true. 106 //
107 // overridable_) By clicking on "Advanced" and then "Proceed".
108 // - This corresponds to "the user can override using the UI".
109 // danger_overridable_) By typing the word "danger".
110 // - This is an undocumented workaround.
111 // - This can be set to "false" dynamically to prevent the behaviour.
107 const bool overridable_; 112 const bool overridable_;
113 bool danger_overridable_;
108 // Has the site requested strict enforcement of certificate errors? 114 // Has the site requested strict enforcement of certificate errors?
109 const bool strict_enforcement_; 115 const bool strict_enforcement_;
110 content::InterstitialPage* interstitial_page_; // Owns us. 116 content::InterstitialPage* interstitial_page_; // Owns us.
111 // Is the hostname for an internal network? 117 // Is the hostname for an internal network?
112 bool internal_; 118 bool internal_;
113 // How many times is this same URL in history? 119 // How many times is this same URL in history?
114 int num_visits_; 120 int num_visits_;
115 // Used for getting num_visits_. 121 // Used for getting num_visits_.
116 base::CancelableTaskTracker request_tracker_; 122 base::CancelableTaskTracker request_tracker_;
117 // Did the user previously allow a bad certificate but the decision has now 123 // Did the user previously allow a bad certificate but the decision has now
118 // expired? 124 // expired?
119 const bool expired_but_previously_allowed_; 125 const bool expired_but_previously_allowed_;
120 scoped_ptr<SSLErrorClassification> ssl_error_classification_; 126 scoped_ptr<SSLErrorClassification> ssl_error_classification_;
121 127
122 #if defined(ENABLE_EXTENSIONS) 128 #if defined(ENABLE_EXTENSIONS)
123 // For Chrome Experience Sampling Platform: this maintains event state. 129 // For Chrome Experience Sampling Platform: this maintains event state.
124 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; 130 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
125 #endif 131 #endif
126 132
127 content::NotificationRegistrar registrar_; 133 content::NotificationRegistrar registrar_;
128 134
129 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 135 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
130 }; 136 };
131 137
132 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 138 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/security_warnings/interstitial_v2.js ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698