OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 WebOriginTrialTokenStatus_h | 5 #ifndef WebOriginTrialTokenStatus_h |
6 #define WebOriginTrialTokenStatus_h | 6 #define WebOriginTrialTokenStatus_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // The enum entries below are written to histograms and thus cannot be deleted | 10 // The enum entries below are written to histograms and thus cannot be deleted |
11 // or reordered. | 11 // or reordered. |
12 // New entries must be added immediately before the end. | 12 // New entries must be added immediately before the end. |
13 enum class WebOriginTrialTokenStatus { | 13 enum class WebOriginTrialTokenStatus { |
14 Success = 0, | 14 Success = 0, |
15 NotSupported = 1, | 15 NotSupported = 1, |
16 Insecure = 2, | 16 Insecure = 2, |
17 NoTokens = 3, | 17 Expired = 3, |
18 Expired = 4, | 18 WrongOrigin = 4, |
19 WrongFeature = 5, | 19 InvalidSignature = 5, |
20 WrongOrigin = 6, | 20 Malformed = 6, |
21 InvalidSignature = 7, | 21 WrongVersion = 7, |
22 Malformed = 8, | 22 FeatureDisabled = 8, |
23 WrongVersion = 9, | |
24 FeatureDisabled = 10, | |
25 Last = FeatureDisabled | 23 Last = FeatureDisabled |
26 }; | 24 }; |
27 | 25 |
28 } // namespace blink | 26 } // namespace blink |
29 | 27 |
30 #endif // WebOriginTrialTokenStatus_h | 28 #endif // WebOriginTrialTokenStatus_h |
OLD | NEW |