| 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 COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/task/cancelable_task_tracker.h" | 12 #include "base/task/cancelable_task_tracker.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "components/rappor/rappor_service.h" | 14 #include "components/rappor/rappor_service_impl.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace history { | 17 namespace history { |
| 18 class HistoryService; | 18 class HistoryService; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace security_interstitials { | 21 namespace security_interstitials { |
| 22 | 22 |
| 23 // MetricsHelper records user warning interactions in a common way via METRICS | 23 // MetricsHelper records user warning interactions in a common way via METRICS |
| 24 // histograms and, optionally, RAPPOR metrics. The class will generate the | 24 // histograms and, optionally, RAPPOR metrics. The class will generate the |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 base::WeakPtr<rappor::RapporService> rappor_service_; | 132 base::WeakPtr<rappor::RapporService> rappor_service_; |
| 133 int num_visits_; | 133 int num_visits_; |
| 134 base::CancelableTaskTracker request_tracker_; | 134 base::CancelableTaskTracker request_tracker_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(MetricsHelper); | 136 DISALLOW_COPY_AND_ASSIGN(MetricsHelper); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace security_interstitials | 139 } // namespace security_interstitials |
| 140 | 140 |
| 141 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 141 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| OLD | NEW |