| Index: third_party/WebKit/Source/modules/worklet/Worklet.h
|
| diff --git a/third_party/WebKit/Source/modules/worklet/Worklet.h b/third_party/WebKit/Source/modules/worklet/Worklet.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3919a641e68b53de7ce29c0aad5373393e966476
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/worklet/Worklet.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2015 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 Worklet_h
|
| +#define Worklet_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "core/dom/ActiveDOMObject.h"
|
| +#include "modules/worklet/WorkletGlobalScope.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ExecutionContext;
|
| +class WorkletGlobalScope;
|
| +class WorkletMessagingProxy;
|
| +
|
| +class Worklet final : public GarbageCollectedFinalized<Worklet>, public ScriptWrappable, public ActiveDOMObject {
|
| + WTF_MAKE_NONCOPYABLE(Worklet);
|
| + DEFINE_WRAPPERTYPEINFO();
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Worklet);
|
| +public:
|
| + static Worklet* create(ExecutionContext*);
|
| +
|
| + double num();
|
| +
|
| + DECLARE_TRACE();
|
| +
|
| +private:
|
| + explicit Worklet(ExecutionContext*);
|
| +
|
| + RefPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope;
|
| + WorkletMessagingProxy* m_workletMessagingProxy;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // Worklet_h
|
|
|