OLD | NEW |
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 "config.h" | |
6 #include "core/workers/Worker.h" | 5 #include "core/workers/Worker.h" |
7 | 6 |
8 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
9 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
10 #include "core/dom/ExceptionCode.h" | 9 #include "core/dom/ExceptionCode.h" |
11 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
12 #include "core/workers/WorkerGlobalScopeProxy.h" | 11 #include "core/workers/WorkerGlobalScopeProxy.h" |
13 #include "core/workers/WorkerGlobalScopeProxyProvider.h" | 12 #include "core/workers/WorkerGlobalScopeProxyProvider.h" |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
(...skipping 30 matching lines...) Expand all Loading... |
46 | 45 |
47 WorkerGlobalScopeProxy* Worker::createWorkerGlobalScopeProxy(ExecutionContext* c
ontext) | 46 WorkerGlobalScopeProxy* Worker::createWorkerGlobalScopeProxy(ExecutionContext* c
ontext) |
48 { | 47 { |
49 Document* document = toDocument(context); | 48 Document* document = toDocument(context); |
50 WorkerGlobalScopeProxyProvider* proxyProvider = WorkerGlobalScopeProxyProvid
er::from(*document->page()); | 49 WorkerGlobalScopeProxyProvider* proxyProvider = WorkerGlobalScopeProxyProvid
er::from(*document->page()); |
51 ASSERT(proxyProvider); | 50 ASSERT(proxyProvider); |
52 return proxyProvider->createWorkerGlobalScopeProxy(this); | 51 return proxyProvider->createWorkerGlobalScopeProxy(this); |
53 } | 52 } |
54 | 53 |
55 } // namespace blink | 54 } // namespace blink |
OLD | NEW |