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

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

Issue 2312273002: [worklets] Remove InProcessWorkerGlobalScopeProxy, and rename classes/methods. (Closed)
Patch Set: Created 4 years, 3 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 #include "core/workers/Worker.h" 5 #include "core/workers/Worker.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 #include "core/frame/UseCounter.h" 10 #include "core/frame/UseCounter.h"
11 #include "core/workers/DedicatedWorkerGlobalScopeProxyProvider.h" 11 #include "core/workers/DedicatedWorkerMessagingProxyProvider.h"
12 #include "core/workers/InProcessWorkerGlobalScopeProxy.h" 12 #include "core/workers/InProcessWorkerMessagingProxy.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 Worker::Worker(ExecutionContext* context) 16 Worker::Worker(ExecutionContext* context)
17 : InProcessWorkerBase(context) 17 : InProcessWorkerBase(context)
18 { 18 {
19 } 19 }
20 20
21 Worker* Worker::create(ExecutionContext* context, const String& url, ExceptionSt ate& exceptionState) 21 Worker* Worker::create(ExecutionContext* context, const String& url, ExceptionSt ate& exceptionState)
22 { 22 {
(...skipping 13 matching lines...) Expand all
36 Worker::~Worker() 36 Worker::~Worker()
37 { 37 {
38 DCHECK(isMainThread()); 38 DCHECK(isMainThread());
39 } 39 }
40 40
41 const AtomicString& Worker::interfaceName() const 41 const AtomicString& Worker::interfaceName() const
42 { 42 {
43 return EventTargetNames::Worker; 43 return EventTargetNames::Worker;
44 } 44 }
45 45
46 InProcessWorkerGlobalScopeProxy* Worker::createInProcessWorkerGlobalScopeProxy(E xecutionContext* context) 46 InProcessWorkerMessagingProxy* Worker::createInProcessWorkerMessagingProxy(Execu tionContext* context)
47 { 47 {
48 Document* document = toDocument(context); 48 Document* document = toDocument(context);
49 DedicatedWorkerGlobalScopeProxyProvider* proxyProvider = DedicatedWorkerGlob alScopeProxyProvider::from(*document->page()); 49 DedicatedWorkerMessagingProxyProvider* proxyProvider = DedicatedWorkerMessag ingProxyProvider::from(*document->page());
50 DCHECK(proxyProvider); 50 DCHECK(proxyProvider);
51 return proxyProvider->createWorkerGlobalScopeProxy(this); 51 return proxyProvider->createWorkerMessagingProxy(this);
52 } 52 }
53 53
54 } // namespace blink 54 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/Worker.h ('k') | third_party/WebKit/Source/modules/compositorworker/CompositorWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698