Index: content/common/origin_trials/trial_token_status.h |
diff --git a/content/common/origin_trials/trial_token_status.h b/content/common/origin_trials/trial_token_status.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5af2fecaec267fc992293ad24d465c44368e6a3 |
--- /dev/null |
+++ b/content/common/origin_trials/trial_token_status.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ |
+#define CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ |
+ |
+namespace content { |
+ |
+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
|
+ TRIAL_TOKEN_STATUS_SUCCESS = 0, |
+ TRIAL_TOKEN_STATUS_EXPIRED, |
+ TRIAL_TOKEN_STATUS_INVALID_SIGNATURE, |
+ TRIAL_TOKEN_STATUS_MALFORMED, |
+ // Embedder does not support origin trials |
+ TRIAL_TOKEN_STATUS_NOT_SUPPORTED, |
+ TRIAL_TOKEN_STATUS_WRONG_FEATURE, |
+ TRIAL_TOKEN_STATUS_WRONG_ORIGIN, |
+ TRIAL_TOKEN_STATUS_LAST = TRIAL_TOKEN_STATUS_WRONG_ORIGIN |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_STATUS_H_ |