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. (This is distinct from the InternalsFrobulate interface, which is a | |
chasej
2016/09/16 15:17:02
InternalsFrobulate doesn't exist anymore. I gather
iclelland
2016/09/16 15:59:46
Done.
| |
19 // partial interface that extends the internals object.) | |
20 class OriginTrialsTest : public GarbageCollectedFinalized<OriginTrialsTest>, pub lic ScriptWrappable { | |
21 DEFINE_WRAPPERTYPEINFO(); | |
22 public: | |
23 static OriginTrialsTest* create() | |
24 { | |
25 return new OriginTrialsTest(); | |
26 } | |
27 virtual ~OriginTrialsTest() = default; | |
28 | |
29 bool normalAttribute(); | |
30 static bool staticAttribute(); | |
31 | |
32 bool throwingAttribute(ScriptState*, ExceptionState&); | |
33 bool unconditionalAttribute(); | |
34 | |
35 static const unsigned short kConstant = 1; | |
36 | |
37 DECLARE_TRACE(); | |
38 | |
39 private: | |
40 OriginTrialsTest() = default; | |
41 | |
42 }; | |
43 | |
44 } // namespace blink | |
45 | |
46 #endif // OriginTrialsTest_h | |
OLD | NEW |