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

Side by Side 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 4 years, 12 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 WorkletScriptController_h
6 #define WorkletScriptController_h
7
8 #include "bindings/core/v8/GlobalScopeScriptController.h"
9
10 namespace blink {
11
12 class WorkletGlobalScope;
13
14 class WorkletScriptController : public GlobalScopeScriptController {
15 USING_FAST_MALLOC_WILL_BE_REMOVED(WorkletScriptController);
16 WTF_MAKE_NONCOPYABLE(WorkletScriptController);
17 public:
18 static PassOwnPtrWillBeRawPtr<WorkletScriptController> create(WorkletGlobalS cope*, v8::Isolate*);
19 virtual ~WorkletScriptController();
20
21 const WrapperTypeInfo* wrapperTypeInfoForGlobalScope() const final;
22 v8::Local<v8::Object> associateGlobalScopeWithWrapper(v8::Isolate*, const Wr apperTypeInfo*, v8::Local<v8::Object> wrapper) final;
23
24 DECLARE_VIRTUAL_TRACE();
25 private:
26 WorkletScriptController(WorkletGlobalScope*, v8::Isolate*);
27
28 RawPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope;
29 };
30
31 } // namespace blink
32
33 #endif // WorkletScriptController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698