| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ |
| 6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ | 6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/task/cancelable_task_tracker.h" | 10 #include "base/task/cancelable_task_tracker.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 MAX_DECISION | 35 MAX_DECISION |
| 36 }; | 36 }; |
| 37 enum SecurityInterstitialInteraction { | 37 enum SecurityInterstitialInteraction { |
| 38 TOTAL_VISITS, | 38 TOTAL_VISITS, |
| 39 SHOW_ADVANCED, | 39 SHOW_ADVANCED, |
| 40 SHOW_PRIVACY_POLICY, | 40 SHOW_PRIVACY_POLICY, |
| 41 SHOW_DIAGNOSTIC, | 41 SHOW_DIAGNOSTIC, |
| 42 SHOW_LEARN_MORE, | 42 SHOW_LEARN_MORE, |
| 43 RELOAD, | 43 RELOAD, |
| 44 OPEN_TIME_SETTINGS, | 44 OPEN_TIME_SETTINGS, |
| 45 SET_EXTENDED_REPORTING_ENABLED, |
| 46 SET_EXTENDED_REPORTING_DISABLED, |
| 47 EXTENDED_REPORTING_IS_ENABLED, |
| 45 MAX_INTERACTION | 48 MAX_INTERACTION |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 enum RapporReporting { | 51 enum RapporReporting { |
| 49 REPORT_RAPPOR, | 52 REPORT_RAPPOR, |
| 50 SKIP_RAPPOR, | 53 SKIP_RAPPOR, |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 // Args: | 56 // Args: |
| 54 // url: URL of page that triggered the interstitial. Only origin is used. | 57 // url: URL of page that triggered the interstitial. Only origin is used. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 85 int num_visits_; | 88 int num_visits_; |
| 86 base::CancelableTaskTracker request_tracker_; | 89 base::CancelableTaskTracker request_tracker_; |
| 87 #if defined(ENABLE_EXTENSIONS) | 90 #if defined(ENABLE_EXTENSIONS) |
| 88 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 91 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
| 89 #endif | 92 #endif |
| 90 | 93 |
| 91 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialMetricsHelper); | 94 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialMetricsHelper); |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ | 97 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ |
| OLD | NEW |