OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ | |
6 #define CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ | |
7 | |
8 namespace content { | |
9 | |
10 enum TrialTokenStatus { | |
Marijn Kruisselbrink
2016/04/21 18:18:42
Rather than having two enums and converting betwee
chasej
2016/04/22 18:50:06
I started with one enum. However, it seemed strang
Marijn Kruisselbrink
2016/04/22 21:51:06
I agree that both options are not ideal. Not havin
chasej
2016/04/25 20:32:52
I've changed to share a single WebOriginTrialToken
| |
11 TRIAL_TOKEN_STATUS_SUCCESS = 0, | |
12 TRIAL_TOKEN_STATUS_EXPIRED, | |
13 TRIAL_TOKEN_STATUS_INVALID_SIGNATURE, | |
14 TRIAL_TOKEN_STATUS_MALFORMED, | |
15 // Embedder does not support origin trials | |
16 TRIAL_TOKEN_STATUS_NOT_SUPPORTED, | |
17 TRIAL_TOKEN_STATUS_WRONG_FEATURE, | |
18 TRIAL_TOKEN_STATUS_WRONG_ORIGIN, | |
19 TRIAL_TOKEN_STATUS_LAST = TRIAL_TOKEN_STATUS_WRONG_ORIGIN | |
20 }; | |
21 | |
22 } // namespace content | |
23 | |
24 #endif // CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ | |
OLD | NEW |