| Index: third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
|
| diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a32d917ce410aa52da261f31ca7eb2f8aa3924b8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
|
| @@ -0,0 +1,35 @@
|
| +// 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 ThreadedWorkletMessagingProxy_h
|
| +#define ThreadedWorkletMessagingProxy_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include "core/workers/ThreadedMessagingProxyBase.h"
|
| +#include "core/workers/WorkletGlobalScopeProxy.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ThreadedWorkletObjectProxy;
|
| +
|
| +class CORE_EXPORT ThreadedWorkletMessagingProxy
|
| + : public ThreadedMessagingProxyBase
|
| + , public WorkletGlobalScopeProxy {
|
| +public:
|
| + // WorkletGlobalScopeProxy implementation.
|
| + void evaluateScript(const ScriptSourceCode&) final;
|
| + void terminateWorkletGlobalScope() final;
|
| +
|
| + void initialize();
|
| +protected:
|
| + ThreadedWorkletMessagingProxy(ExecutionContext*);
|
| +
|
| + ThreadedWorkletObjectProxy& workletObjectProxy() { return *m_workletObjectProxy.get(); }
|
| +private:
|
| + std::unique_ptr<ThreadedWorkletObjectProxy> m_workletObjectProxy;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // ThreadedWorkletMessagingProxy_h
|
|
|