Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/WorkletScriptController.h

Issue 1535943005: Initial implementation of bindings and basic classes for worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix memory leak. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/modules/v8/WorkletScriptController.h
diff --git a/third_party/WebKit/Source/bindings/modules/v8/WorkletScriptController.h b/third_party/WebKit/Source/bindings/modules/v8/WorkletScriptController.h
new file mode 100644
index 0000000000000000000000000000000000000000..60510599ee6643fb85718ccd62aee51dbfb1a610
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/modules/v8/WorkletScriptController.h
@@ -0,0 +1,33 @@
+// 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 WorkletScriptController_h
+#define WorkletScriptController_h
+
+#include "bindings/core/v8/GlobalScopeScriptController.h"
+
+namespace blink {
+
+class WorkletGlobalScope;
+
+class WorkletScriptController : public GlobalScopeScriptController {
+ USING_FAST_MALLOC_WILL_BE_REMOVED(WorkletScriptController);
+ WTF_MAKE_NONCOPYABLE(WorkletScriptController);
+public:
+ static PassOwnPtrWillBeRawPtr<WorkletScriptController> create(WorkletGlobalScope*, v8::Isolate*);
+ virtual ~WorkletScriptController();
+
+ const WrapperTypeInfo* wrapperTypeInfoForGlobalScope() const final;
+ v8::Local<v8::Object> associateGlobalScopeWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Local<v8::Object> wrapper) final;
+
+ DECLARE_VIRTUAL_TRACE();
+private:
+ WorkletScriptController(WorkletGlobalScope*, v8::Isolate*);
+
+ RawPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope;
+};
+
+} // namespace blink
+
+#endif // WorkletScriptController_h

Powered by Google App Engine
This is Rietveld 408576698