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

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: remove AbstractGlobalScope. 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 ErrorEvent;
13 class ScriptCallStack;
14 class WorkletGlobalScope;
15
16 class WorkletScriptController final : public GlobalScopeScriptController {
17 USING_FAST_MALLOC_WILL_BE_REMOVED(WorkletScriptController);
18 WTF_MAKE_NONCOPYABLE(WorkletScriptController);
19 public:
20 static PassOwnPtrWillBeRawPtr<WorkletScriptController> create(WorkletGlobalS cope*, v8::Isolate*);
21 virtual ~WorkletScriptController();
22
23 DECLARE_TRACE();
24 private:
25 WorkletScriptController(WorkletGlobalScope*, v8::Isolate*);
26
27 void didStopRunLoop() final { }
28 v8::Isolate* isolate() const final;
29 bool isContextThread() const final { return true; }
30
31 const WrapperTypeInfo* wrapperTypeInfoForGlobalScope() const final;
32 v8::Local<v8::Object> associateGlobalScopeWithWrapper(const WrapperTypeInfo* , v8::Local<v8::Object> wrapper) final;
33 v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Script>) final;
34
35 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus) final;
36 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, int scriptId, PassR efPtrWillBeRawPtr<ScriptCallStack>, AccessControlStatus) final;
37
38 RawPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope;
39 };
40
41 } // namespace blink
42
43 #endif // WorkletScriptController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698