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 OriginTrialsTest_h |
| 6 #define OriginTrialsTest_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class ExceptionState; |
| 14 class ScriptState; |
| 15 |
| 16 // OriginTrialsTest is a very simple interface used for testing |
| 17 // origin-trial-enabled features which are attached directly to interfaces at |
| 18 // run-time. |
| 19 class OriginTrialsTest : public GarbageCollectedFinalized<OriginTrialsTest>, pub
lic ScriptWrappable { |
| 20 DEFINE_WRAPPERTYPEINFO(); |
| 21 public: |
| 22 static OriginTrialsTest* create() |
| 23 { |
| 24 return new OriginTrialsTest(); |
| 25 } |
| 26 virtual ~OriginTrialsTest() = default; |
| 27 |
| 28 bool normalAttribute(); |
| 29 static bool staticAttribute(); |
| 30 |
| 31 bool throwingAttribute(ScriptState*, ExceptionState&); |
| 32 bool unconditionalAttribute(); |
| 33 |
| 34 static const unsigned short kConstant = 1; |
| 35 |
| 36 DECLARE_TRACE(); |
| 37 |
| 38 private: |
| 39 OriginTrialsTest() = default; |
| 40 |
| 41 }; |
| 42 |
| 43 } // namespace blink |
| 44 |
| 45 #endif // OriginTrialsTest_h |
OLD | NEW |