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

Side by Side Diff: third_party/WebKit/Source/core/workers/MainThreadWorklet.h

Issue 2868413005: Worklet: Introduce WorkletOptions for addModule() (Closed)
Patch Set: add TODO comments Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MainThreadWorklet_h 5 #ifndef MainThreadWorklet_h
6 #define MainThreadWorklet_h 6 #define MainThreadWorklet_h
7 7
8 #include "core/workers/Worklet.h" 8 #include "core/workers/Worklet.h"
9 9
10 #include "bindings/core/v8/ScriptPromise.h" 10 #include "bindings/core/v8/ScriptPromise.h"
(...skipping 20 matching lines...) Expand all
31 void ContextDestroyed(ExecutionContext*) final; 31 void ContextDestroyed(ExecutionContext*) final;
32 32
33 DECLARE_VIRTUAL_TRACE(); 33 DECLARE_VIRTUAL_TRACE();
34 34
35 protected: 35 protected:
36 explicit MainThreadWorklet(LocalFrame*); 36 explicit MainThreadWorklet(LocalFrame*);
37 37
38 private: 38 private:
39 // Worklet. 39 // Worklet.
40 void FetchAndInvokeScript(const KURL& module_url_record, 40 void FetchAndInvokeScript(const KURL& module_url_record,
41 const WorkletOptions&,
41 ScriptPromiseResolver*) override; 42 ScriptPromiseResolver*) override;
42 }; 43 };
43 44
44 } // namespace blink 45 } // namespace blink
45 46
46 #endif // MainThreadWorklet_h 47 #endif // MainThreadWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698