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

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

Issue 1035023002: Adding the Finch code for the certificate error reporter experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Finch config 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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/task/cancelable_task_tracker.h" 13 #include "base/task/cancelable_task_tracker.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/interstitials/security_interstitial_page.h" 15 #include "chrome/browser/interstitials/security_interstitial_page.h"
16 #include "net/ssl/ssl_info.h" 16 #include "net/ssl/ssl_info.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 #if defined(ENABLE_EXTENSIONS) 19 #if defined(ENABLE_EXTENSIONS)
20 namespace extensions { 20 namespace extensions {
21 class ExperienceSamplingEvent; 21 class ExperienceSamplingEvent;
22 } 22 }
23 #endif 23 #endif
24 24
25 // Constants for the HTTPSErrorReporter Finch experiment
felt 2015/04/03 14:34:46 Is this the right place in the declaration order f
fahl 2015/04/03 17:39:31 Done.
26 extern const char kHTTPSErrorReporterFinchExperimentName[];
27 extern const char kHTTPSErrorReporterFinchGroupShowPossiblySend[];
28 extern const char kHTTPSErrorReporterFinchGroupDontShowDontSend[];
29 extern const char kHTTPSErrorReporterFinchParamName[];
30
25 class SafeBrowsingUIManager; 31 class SafeBrowsingUIManager;
26 class SSLErrorClassification; 32 class SSLErrorClassification;
27 33
28 // This class is responsible for showing/hiding the interstitial page that is 34 // This class is responsible for showing/hiding the interstitial page that is
29 // shown when a certificate error happens. 35 // shown when a certificate error happens.
30 // It deletes itself when the interstitial page is closed. 36 // It deletes itself when the interstitial page is closed.
31 class SSLBlockingPage : public SecurityInterstitialPage { 37 class SSLBlockingPage : public SecurityInterstitialPage {
32 public: 38 public:
33 enum SSLBlockingPageOptionsMask { 39 enum SSLBlockingPageOptionsMask {
34 // Indicates whether or not the user could (assuming perfect knowledge) 40 // Indicates whether or not the user could (assuming perfect knowledge)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Which type of interstitial this is. 140 // Which type of interstitial this is.
135 enum SSLInterstitialReason { 141 enum SSLInterstitialReason {
136 SSL_REASON_SSL, 142 SSL_REASON_SSL,
137 SSL_REASON_BAD_CLOCK 143 SSL_REASON_BAD_CLOCK
138 } interstitial_reason_; 144 } interstitial_reason_;
139 145
140 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 146 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
141 }; 147 };
142 148
143 #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