| 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 "modules/compositorworker/CompositorWorker.h" | 5 #include "modules/compositorworker/CompositorWorker.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/workers/WorkerClients.h" | 10 #include "core/workers/WorkerClients.h" |
| 11 #include "modules/EventTargetModules.h" | 11 #include "modules/EventTargetModules.h" |
| 12 #include "modules/compositorworker/CompositorWorkerMessagingProxy.h" | 12 #include "modules/compositorworker/CompositorWorkerMessagingProxy.h" |
| 13 #include "wtf/MainThread.h" | |
| 14 | 13 |
| 15 namespace blink { | 14 namespace blink { |
| 16 | 15 |
| 17 inline CompositorWorker::CompositorWorker(ExecutionContext* context) | 16 inline CompositorWorker::CompositorWorker(ExecutionContext* context) |
| 18 : InProcessWorkerBase(context) | 17 : InProcessWorkerBase(context) |
| 19 { | 18 { |
| 20 } | 19 } |
| 21 | 20 |
| 22 CompositorWorker* CompositorWorker::create(ExecutionContext* context, const Stri
ng& url, ExceptionState& exceptionState) | 21 CompositorWorker* CompositorWorker::create(ExecutionContext* context, const Stri
ng& url, ExceptionState& exceptionState) |
| 23 { | 22 { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 return EventTargetNames::CompositorWorker; | 42 return EventTargetNames::CompositorWorker; |
| 44 } | 43 } |
| 45 | 44 |
| 46 WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(Execution
Context* worker) | 45 WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(Execution
Context* worker) |
| 47 { | 46 { |
| 48 ASSERT(getExecutionContext()->isDocument()); | 47 ASSERT(getExecutionContext()->isDocument()); |
| 49 return new CompositorWorkerMessagingProxy(this); | 48 return new CompositorWorkerMessagingProxy(this); |
| 50 } | 49 } |
| 51 | 50 |
| 52 } // namespace blink | 51 } // namespace blink |
| OLD | NEW |