| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ThreadedMessagingProxyBase.h" | 5 #include "core/workers/ThreadedMessagingProxyBase.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/SourceLocation.h" | 7 #include "bindings/core/v8/SourceLocation.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/TaskRunnerHelper.h" | 9 #include "core/dom/TaskRunnerHelper.h" |
| 10 #include "core/frame/Deprecation.h" | 10 #include "core/frame/Deprecation.h" |
| 11 #include "core/loader/DocumentLoader.h" | 11 #include "core/loader/DocumentLoader.h" |
| 12 #include "core/loader/ThreadableLoadingContext.h" | 12 #include "core/loader/ThreadableLoadingContext.h" |
| 13 #include "core/workers/WorkerClients.h" |
| 13 #include "core/workers/WorkerInspectorProxy.h" | 14 #include "core/workers/WorkerInspectorProxy.h" |
| 14 #include "core/workers/WorkerThreadStartupData.h" | 15 #include "core/workers/WorkerThreadStartupData.h" |
| 15 #include "platform/wtf/CurrentTime.h" | 16 #include "platform/wtf/CurrentTime.h" |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 static int g_live_messaging_proxy_count = 0; | 22 static int g_live_messaging_proxy_count = 0; |
| 22 | 23 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 161 } |
| 161 | 162 |
| 162 bool ThreadedMessagingProxyBase::IsParentContextThread() const { | 163 bool ThreadedMessagingProxyBase::IsParentContextThread() const { |
| 163 // TODO(nhiroki): Nested worker is not supported yet, so the parent context | 164 // TODO(nhiroki): Nested worker is not supported yet, so the parent context |
| 164 // thread should be equal to the main thread (http://crbug.com/31666). | 165 // thread should be equal to the main thread (http://crbug.com/31666). |
| 165 DCHECK(execution_context_->IsDocument()); | 166 DCHECK(execution_context_->IsDocument()); |
| 166 return IsMainThread(); | 167 return IsMainThread(); |
| 167 } | 168 } |
| 168 | 169 |
| 169 } // namespace blink | 170 } // namespace blink |
| OLD | NEW |