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

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

Issue 2939773005: [POC] Implement "module responses map" concept (Closed)
Patch Set: rebase Created 3 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ThreadedWorkletMessagingProxy_h 5 #ifndef ThreadedWorkletMessagingProxy_h
6 #define ThreadedWorkletMessagingProxy_h 6 #define ThreadedWorkletMessagingProxy_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/loader/WorkletScriptLoader.h" 9 #include "core/loader/WorkletScriptLoader.h"
10 #include "core/workers/ThreadedMessagingProxyBase.h" 10 #include "core/workers/ThreadedMessagingProxyBase.h"
11 #include "core/workers/WorkletGlobalScopeProxy.h" 11 #include "core/workers/WorkletGlobalScopeProxy.h"
12 #include "core/workers/WorkletPendingTasks.h" 12 #include "core/workers/WorkletPendingTasks.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ScriptSourceCode; 16 class ScriptSourceCode;
17 class ThreadedWorkletObjectProxy; 17 class ThreadedWorkletObjectProxy;
18 class WorkerClients; 18 class WorkerClients;
19 19
20 class CORE_EXPORT ThreadedWorkletMessagingProxy 20 class CORE_EXPORT ThreadedWorkletMessagingProxy
21 : public ThreadedMessagingProxyBase, 21 : public ThreadedMessagingProxyBase,
22 public WorkletGlobalScopeProxy { 22 public WorkletGlobalScopeProxy {
23 USING_GARBAGE_COLLECTED_MIXIN(ThreadedWorkletMessagingProxy); 23 USING_GARBAGE_COLLECTED_MIXIN(ThreadedWorkletMessagingProxy);
24 24
25 public: 25 public:
26 // WorkletGlobalScopeProxy implementation. 26 // WorkletGlobalScopeProxy implementation.
27 void FetchAndInvokeScript(const KURL& module_url_record, 27 void FetchAndInvokeScript(const KURL& module_url_record,
28 WorkletModuleResponsesMap*,
28 WebURLRequest::FetchCredentialsMode, 29 WebURLRequest::FetchCredentialsMode,
29 RefPtr<WebTaskRunner> outside_settings_task_runner, 30 RefPtr<WebTaskRunner> outside_settings_task_runner,
30 WorkletPendingTasks*) final; 31 WorkletPendingTasks*) final;
31 void WorkletObjectDestroyed() final; 32 void WorkletObjectDestroyed() final;
32 void TerminateWorkletGlobalScope() final; 33 void TerminateWorkletGlobalScope() final;
33 34
34 void Initialize(); 35 void Initialize();
35 36
36 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
37 38
(...skipping 12 matching lines...) Expand all
50 void EvaluateScript(const ScriptSourceCode&); 51 void EvaluateScript(const ScriptSourceCode&);
51 52
52 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_; 53 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_;
53 54
54 HeapHashSet<Member<WorkletScriptLoader>> loaders_; 55 HeapHashSet<Member<WorkletScriptLoader>> loaders_;
55 }; 56 };
56 57
57 } // namespace blink 58 } // namespace blink
58 59
59 #endif // ThreadedWorkletMessagingProxy_h 60 #endif // ThreadedWorkletMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698