| 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 "components/security_interstitials/core/metrics_helper.h" | 10 #include "components/security_interstitials/core/metrics_helper.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 security_interstitials::MetricsHelper::Interaction interaction) override; | 44 security_interstitials::MetricsHelper::Interaction interaction) override; |
| 45 void RecordExtraShutdownMetrics() override; | 45 void RecordExtraShutdownMetrics() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 content::WebContents* web_contents_; | 48 content::WebContents* web_contents_; |
| 49 const GURL request_url_; | 49 const GURL request_url_; |
| 50 const std::string sampling_event_name_; | 50 const std::string sampling_event_name_; |
| 51 #if defined(ENABLE_EXTENSIONS) | 51 #if defined(ENABLE_EXTENSIONS) |
| 52 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 52 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 53 #endif | 53 #endif |
| 54 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 54 scoped_ptr<CaptivePortalMetricsRecorder> captive_portal_recorder_; | 55 scoped_ptr<CaptivePortalMetricsRecorder> captive_portal_recorder_; |
| 56 #endif |
| 55 | 57 |
| 56 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsHelper); | 58 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsHelper); |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ | 61 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_METRICS_HELPER_H_ |
| OLD | NEW |