OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INTERSTITIALS_CHROME_METRICS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ |
6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ | 6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 protected: | 40 protected: |
41 // security_interstitials::MetricsHelper methods: | 41 // security_interstitials::MetricsHelper methods: |
42 void RecordExtraUserDecisionMetrics( | 42 void RecordExtraUserDecisionMetrics( |
43 security_interstitials::MetricsHelper::Decision decision) override; | 43 security_interstitials::MetricsHelper::Decision decision) override; |
44 void RecordExtraUserInteractionMetrics( | 44 void RecordExtraUserInteractionMetrics( |
45 security_interstitials::MetricsHelper::Interaction interaction) override; | 45 security_interstitials::MetricsHelper::Interaction interaction) override; |
46 void RecordExtraShutdownMetrics() override; | 46 void RecordExtraShutdownMetrics() override; |
47 | 47 |
48 private: | 48 private: |
| 49 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) || defined(ENABLE_EXTENSIONS) |
49 content::WebContents* web_contents_; | 50 content::WebContents* web_contents_; |
| 51 #endif |
50 const GURL request_url_; | 52 const GURL request_url_; |
51 const std::string sampling_event_name_; | 53 const std::string sampling_event_name_; |
52 #if defined(ENABLE_EXTENSIONS) | 54 #if defined(ENABLE_EXTENSIONS) |
53 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 55 std::unique_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
54 #endif | 56 #endif |
55 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 57 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
56 std::unique_ptr<CaptivePortalMetricsRecorder> captive_portal_recorder_; | 58 std::unique_ptr<CaptivePortalMetricsRecorder> captive_portal_recorder_; |
57 #endif | 59 #endif |
58 | 60 |
59 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsHelper); | 61 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsHelper); |
60 }; | 62 }; |
61 | 63 |
62 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ | 64 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ |
OLD | NEW |