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_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ | 5 #ifndef COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ |
6 #define COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ | 6 #define COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 IMAGE_FETCHER_UNTAGGED, | 58 IMAGE_FETCHER_UNTAGGED, |
59 GAIA, | 59 GAIA, |
60 CAPTIVE_PORTAL, | 60 CAPTIVE_PORTAL, |
61 WEB_RESOURCE_SERVICE, | 61 WEB_RESOURCE_SERVICE, |
62 SIGNIN, | 62 SIGNIN, |
63 NTP_SNIPPETS_SUGGESTIONS, | 63 NTP_SNIPPETS_SUGGESTIONS, |
64 NTP_SNIPPETS_THUMBNAILS, | 64 NTP_SNIPPETS_THUMBNAILS, |
65 DOODLE, | 65 DOODLE, |
66 UKM, | 66 UKM, |
67 PAYMENTS, | 67 PAYMENTS, |
| 68 SERVICE_WORKER, |
68 }; | 69 }; |
69 | 70 |
70 // Data use broken by content type. This enum must remain synchronized | 71 // Data use broken by content type. This enum must remain synchronized |
71 // with the enum of the same name in metrics/histograms/histograms.xml. | 72 // with the enum of the same name in metrics/histograms/histograms.xml. |
72 // These values are written to logs. New enum values can be added, but | 73 // These values are written to logs. New enum values can be added, but |
73 // existing enums must never be renumbered or deleted and reused. | 74 // existing enums must never be renumbered or deleted and reused. |
74 enum DataUseContentType { | 75 enum DataUseContentType { |
75 OTHER = 0, | 76 OTHER = 0, |
76 MAIN_FRAME_HTML = 1, | 77 MAIN_FRAME_HTML = 1, |
77 NON_MAIN_FRAME_HTML = 2, | 78 NON_MAIN_FRAME_HTML = 2, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 AppState app_state_; | 131 AppState app_state_; |
131 | 132 |
132 DataUseContentType content_type_; | 133 DataUseContentType content_type_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(DataUseUserData); | 135 DISALLOW_COPY_AND_ASSIGN(DataUseUserData); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace data_use_measurement | 138 } // namespace data_use_measurement |
138 | 139 |
139 #endif // COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ | 140 #endif // COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ |
OLD | NEW |