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

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

Issue 1888703002: Worker: Rename worker components to clarify what they work for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing files Created 4 years, 8 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/WorkerGlobalScopeProxy.h" 11 #include "core/workers/DedicatedWorkerGlobalScopeProxyProvider.h"
12 #include "core/workers/WorkerGlobalScopeProxyProvider.h" 12 #include "core/workers/InProcessWorkerGlobalScopeProxy.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 ASSERT(isMainThread()); 38 ASSERT(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 WorkerGlobalScopeProxy* Worker::createWorkerGlobalScopeProxy(ExecutionContext* c ontext) 46 InProcessWorkerGlobalScopeProxy* Worker::createInProcessWorkerGlobalScopeProxy(E xecutionContext* context)
47 { 47 {
48 Document* document = toDocument(context); 48 Document* document = toDocument(context);
49 WorkerGlobalScopeProxyProvider* proxyProvider = WorkerGlobalScopeProxyProvid er::from(*document->page()); 49 DedicatedWorkerGlobalScopeProxyProvider* proxyProvider = DedicatedWorkerGlob alScopeProxyProvider::from(*document->page());
50 ASSERT(proxyProvider); 50 ASSERT(proxyProvider);
51 return proxyProvider->createWorkerGlobalScopeProxy(this); 51 return proxyProvider->createWorkerGlobalScopeProxy(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/core/workers/WorkerGlobalScopeProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698