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

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

Issue 399773002: Experience sampling insturmentation for SSL and Safe Browsing interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sampling-api
Patch Set: Clean up experience sampling header file changes Created 6 years, 4 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/history/history_service.h" 15 #include "chrome/browser/history/history_service.h"
16 #include "content/public/browser/interstitial_page_delegate.h" 16 #include "content/public/browser/interstitial_page_delegate.h"
17 #include "net/ssl/ssl_info.h" 17 #include "net/ssl/ssl_info.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace base { 20 namespace base {
21 class DictionaryValue; 21 class DictionaryValue;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 class InterstitialPage; 25 class InterstitialPage;
26 class WebContents; 26 class WebContents;
27 } 27 }
28 28
29 #if defined(ENABLE_EXTENSIONS)
30 namespace extensions {
31 class ExperienceSamplingEvent;
32 }
33 #endif
34
29 // This class is responsible for showing/hiding the interstitial page that is 35 // This class is responsible for showing/hiding the interstitial page that is
30 // shown when a certificate error happens. 36 // shown when a certificate error happens.
31 // It deletes itself when the interstitial page is closed. 37 // It deletes itself when the interstitial page is closed.
32 // 38 //
33 // This class should only be used on the UI thread because its implementation 39 // This class should only be used on the UI thread because its implementation
34 // uses captive_portal::CaptivePortalService which can only be accessed on the 40 // uses captive_portal::CaptivePortalService which can only be accessed on the
35 // UI thread. 41 // UI thread.
36 class SSLBlockingPage : public content::InterstitialPageDelegate, 42 class SSLBlockingPage : public content::InterstitialPageDelegate,
37 public content::NotificationObserver { 43 public content::NotificationObserver {
38 public: 44 public:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::CancelableTaskTracker request_tracker_; 120 base::CancelableTaskTracker request_tracker_;
115 // Is captive portal detection enabled? 121 // Is captive portal detection enabled?
116 bool captive_portal_detection_enabled_; 122 bool captive_portal_detection_enabled_;
117 // Did the probe complete before the interstitial was closed? 123 // Did the probe complete before the interstitial was closed?
118 bool captive_portal_probe_completed_; 124 bool captive_portal_probe_completed_;
119 // Did the captive portal probe receive an error or get a non-HTTP response? 125 // Did the captive portal probe receive an error or get a non-HTTP response?
120 bool captive_portal_no_response_; 126 bool captive_portal_no_response_;
121 // Was a captive portal detected? 127 // Was a captive portal detected?
122 bool captive_portal_detected_; 128 bool captive_portal_detected_;
123 129
130 // For the FieldTrial: this contains the name of the condition.
131 std::string trial_condition_;
132
133 #if defined(ENABLE_EXTENSIONS)
134 // For Chrome Experience Sampling Platform: this maintains event state.
135 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
136 #endif
137
124 content::NotificationRegistrar registrar_; 138 content::NotificationRegistrar registrar_;
125 139
126 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 140 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
127 }; 141 };
128 142
129 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 143 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698