| Index: third_party/WebKit/Source/core/dom/TestObject.h
|
| diff --git a/third_party/WebKit/Source/core/dom/TestObject.h b/third_party/WebKit/Source/core/dom/TestObject.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d16844e1517986d6d22a94cd75285846c6521579
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/dom/TestObject.h
|
| @@ -0,0 +1,28 @@
|
| +// 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 TestObject_h
|
| +#define TestObject_h
|
| +
|
| +#include "bindings/core/v8/ScriptState.h"
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "platform/weborigin/KURL.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class TestObject : public GarbageCollected<TestObject>, public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +public:
|
| + static TestObject* create() { return new TestObject; }
|
| + String getScriptStateURL(ScriptState* scriptState) const { return scriptState->getExecutionContext()->url().getString(); }
|
| +
|
| + DEFINE_INLINE_TRACE() {}
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|