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_SSL, | |
46 SET_EXTENDED_REPORTING_ENABLED_SAFE_BROWSING, | |
felt
2015/03/25 01:07:17
You don't need to distinguish between SSL and SAFE
estark
2015/03/25 04:08:02
Done. Also, oops, I wasn't actually using SET_EXTE
| |
47 EXTENDED_REPORTING_IS_ENABLED_SSL, | |
48 EXTENDED_REPORTING_IS_ENABLED_SAFE_BROWSING, | |
45 MAX_INTERACTION | 49 MAX_INTERACTION |
46 }; | 50 }; |
47 | 51 |
48 enum RapporReporting { | 52 enum RapporReporting { |
49 REPORT_RAPPOR, | 53 REPORT_RAPPOR, |
50 SKIP_RAPPOR, | 54 SKIP_RAPPOR, |
51 }; | 55 }; |
52 | 56 |
53 // Args: | 57 // Args: |
54 // url: URL of page that triggered the interstitial. Only origin is used. | 58 // url: URL of page that triggered the interstitial. Only origin is used. |
(...skipping 30 matching lines...) Expand all Loading... | |
85 int num_visits_; | 89 int num_visits_; |
86 base::CancelableTaskTracker request_tracker_; | 90 base::CancelableTaskTracker request_tracker_; |
87 #if defined(ENABLE_EXTENSIONS) | 91 #if defined(ENABLE_EXTENSIONS) |
88 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; | 92 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; |
89 #endif | 93 #endif |
90 | 94 |
91 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialMetricsHelper); | 95 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialMetricsHelper); |
92 }; | 96 }; |
93 | 97 |
94 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ | 98 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_METRICS_HELPER_H_ |
OLD | NEW |