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

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

Issue 2939623002: [DONT COMMIT] WIP: WorkerClientsInitializer (Closed)
Patch Set: finalize2 Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 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 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 Worker_h 5 #ifndef Worker_h
6 #define Worker_h 6 #define Worker_h
7 7
8 #include "core/workers/InProcessWorkerBase.h" 8 #include "core/workers/InProcessWorkerBase.h"
9 9
10 #include "core/workers/WorkerClients.h"
11
10 namespace blink { 12 namespace blink {
11 13
12 class ExceptionState; 14 class ExceptionState;
13 class ExecutionContext; 15 class ExecutionContext;
14 class InProcessWorkerMessagingProxy; 16 class InProcessWorkerMessagingProxy;
15 17
16 class CORE_EXPORT Worker final : public InProcessWorkerBase { 18 class CORE_EXPORT Worker final : public InProcessWorkerBase {
17 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
18 USING_GARBAGE_COLLECTED_MIXIN(Worker); 20 USING_GARBAGE_COLLECTED_MIXIN(Worker);
19 21
20 public: 22 public:
21 static Worker* Create(ExecutionContext*, const String& url, ExceptionState&); 23 static Worker* Create(ExecutionContext*, const String& url, ExceptionState&);
22 ~Worker() override; 24 ~Worker() override;
23 25
24 protected: 26 protected:
25 explicit Worker(ExecutionContext*); 27 explicit Worker(ExecutionContext*);
26 28
27 InProcessWorkerMessagingProxy* CreateInProcessWorkerMessagingProxy( 29 InProcessWorkerMessagingProxy* CreateInProcessWorkerMessagingProxy(
28 ExecutionContext*) override; 30 ExecutionContext*) override;
29 const AtomicString& InterfaceName() const override; 31 const AtomicString& InterfaceName() const override;
30 }; 32 };
31 33
34 extern template class CORE_EXTERN_TEMPLATE_EXPORT
35 WorkerClientsInitializer<Worker>;
36
32 } // namespace blink 37 } // namespace blink
33 38
34 #endif // Worker_h 39 #endif // Worker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698