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

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

Issue 1076273002: Add interstitial info to certificate reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); 93 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data);
94 94
95 private: 95 private:
96 void NotifyDenyCertificate(); 96 void NotifyDenyCertificate();
97 void NotifyAllowCertificate(); 97 void NotifyAllowCertificate();
98 98
99 std::string GetUmaHistogramPrefix() const; 99 std::string GetUmaHistogramPrefix() const;
100 std::string GetSamplingEventName() const; 100 std::string GetSamplingEventName() const;
101 101
102 // Send a report about an invalid certificate to the server. 102 // Send a report about an invalid certificate to the server.
103 void FinishCertCollection(); 103 void FinishCertCollection(bool proceeded);
104 104
105 // Check whether a checkbox should be shown on the page that allows 105 // Check whether a checkbox should be shown on the page that allows
106 // the user to opt in to Safe Browsing extended reporting. 106 // the user to opt in to Safe Browsing extended reporting.
107 bool ShouldShowCertificateReporterCheckbox(); 107 bool ShouldShowCertificateReporterCheckbox();
108 108
109 // Returns true if an certificate report should be sent for the SSL 109 // Returns true if an certificate report should be sent for the SSL
110 // error for this page. 110 // error for this page.
111 bool ShouldReportCertificateError(); 111 bool ShouldReportCertificateError();
112 112
113 base::Callback<void(bool)> callback_; 113 base::Callback<void(bool)> callback_;
(...skipping 26 matching lines...) Expand all
140 // Which type of interstitial this is. 140 // Which type of interstitial this is.
141 enum SSLInterstitialReason { 141 enum SSLInterstitialReason {
142 SSL_REASON_SSL, 142 SSL_REASON_SSL,
143 SSL_REASON_BAD_CLOCK 143 SSL_REASON_BAD_CLOCK
144 } interstitial_reason_; 144 } interstitial_reason_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 146 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
147 }; 147 };
148 148
149 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 149 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698