| 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 OriginTrialContext_h | 5 #ifndef OriginTrialContext_h |
| 6 #define OriginTrialContext_h | 6 #define OriginTrialContext_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/ExecutionContext.h" | 9 #include "core/dom/ExecutionContext.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "wtf/HashSet.h" | 11 #include "platform/wtf/HashSet.h" |
| 12 #include "wtf/Vector.h" | 12 #include "platform/wtf/Vector.h" |
| 13 #include "wtf/text/StringHash.h" | 13 #include "platform/wtf/text/StringHash.h" |
| 14 #include "wtf/text/WTFString.h" | 14 #include "platform/wtf/text/WTFString.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class ExecutionContext; | 18 class ExecutionContext; |
| 19 enum class WebOriginTrialTokenStatus; | 19 enum class WebOriginTrialTokenStatus; |
| 20 class WebTrialTokenValidator; | 20 class WebTrialTokenValidator; |
| 21 | 21 |
| 22 // The Origin Trials Framework provides limited access to experimental features, | 22 // The Origin Trials Framework provides limited access to experimental features, |
| 23 // on a per-origin basis (origin trials). This class provides the implementation | 23 // on a per-origin basis (origin trials). This class provides the implementation |
| 24 // to check if the experimental feature should be enabled for the current | 24 // to check if the experimental feature should be enabled for the current |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 Vector<String> tokens_; | 94 Vector<String> tokens_; |
| 95 HashSet<String> enabled_trials_; | 95 HashSet<String> enabled_trials_; |
| 96 HashSet<String> installed_trials_; | 96 HashSet<String> installed_trials_; |
| 97 WebTrialTokenValidator* trial_token_validator_; | 97 WebTrialTokenValidator* trial_token_validator_; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // OriginTrialContext_h | 102 #endif // OriginTrialContext_h |
| OLD | NEW |