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

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

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment typo Created 5 years, 9 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void OverrideEntry(content::NavigationEntry* entry) override; 73 void OverrideEntry(content::NavigationEntry* entry) override;
74 void OverrideRendererPrefs(content::RendererPreferences* prefs) override; 74 void OverrideRendererPrefs(content::RendererPreferences* prefs) override;
75 void OnProceed() override; 75 void OnProceed() override;
76 void OnDontProceed() override; 76 void OnDontProceed() override;
77 77
78 // SecurityInterstitialPage implementation: 78 // SecurityInterstitialPage implementation:
79 bool ShouldCreateNewNavigation() const override; 79 bool ShouldCreateNewNavigation() const override;
80 void PopulateInterstitialStrings( 80 void PopulateInterstitialStrings(
81 base::DictionaryValue* load_time_data) override; 81 base::DictionaryValue* load_time_data) override;
82 82
83 // SecurityInterstitialPage implementation:
84 void PopulateExtendedReportingOption(
85 base::DictionaryValue* load_time_data) override;
86
83 private: 87 private:
84 void NotifyDenyCertificate(); 88 void NotifyDenyCertificate();
85 void NotifyAllowCertificate(); 89 void NotifyAllowCertificate();
86 90
87 std::string GetUmaHistogramPrefix() const; 91 std::string GetUmaHistogramPrefix() const;
88 std::string GetSamplingEventName() const; 92 std::string GetSamplingEventName() const;
89 93
94 // Send a report about an invalid certificate to the server. Takes
95 // care of calling certificate_report_callback_for_testing_.
96 void FinishCertCollection();
97
90 base::Callback<void(bool)> callback_; 98 base::Callback<void(bool)> callback_;
91 99
92 const int cert_error_; 100 const int cert_error_;
93 const net::SSLInfo ssl_info_; 101 const net::SSLInfo ssl_info_;
94 // There are two ways for the user to override an interstitial: 102 // There are two ways for the user to override an interstitial:
95 // 103 //
96 // overridable_) By clicking on "Advanced" and then "Proceed". 104 // overridable_) By clicking on "Advanced" and then "Proceed".
97 // - This corresponds to "the user can override using the UI". 105 // - This corresponds to "the user can override using the UI".
98 // danger_overridable_) By typing the word "danger". 106 // danger_overridable_) By typing the word "danger".
99 // - This is an undocumented workaround. 107 // - This is an undocumented workaround.
(...skipping 14 matching lines...) Expand all
114 // Which type of interstitial this is. 122 // Which type of interstitial this is.
115 enum SSLInterstitialReason { 123 enum SSLInterstitialReason {
116 SSL_REASON_SSL, 124 SSL_REASON_SSL,
117 SSL_REASON_BAD_CLOCK 125 SSL_REASON_BAD_CLOCK
118 } interstitial_reason_; 126 } interstitial_reason_;
119 127
120 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 128 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
121 }; 129 };
122 130
123 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 131 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698