OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "web/WebSharedWorkerReportingProxyImpl.h" | 5 #include "web/WebSharedWorkerReportingProxyImpl.h" |
6 | 6 |
7 #include "bindings/core/v8/SourceLocation.h" | 7 #include "bindings/core/v8/SourceLocation.h" |
8 #include "platform/CrossThreadFunctional.h" | 8 #include "platform/CrossThreadFunctional.h" |
| 9 #include "platform/wtf/WTF.h" |
9 #include "public/platform/WebTraceLocation.h" | 10 #include "public/platform/WebTraceLocation.h" |
10 #include "web/WebSharedWorkerImpl.h" | 11 #include "web/WebSharedWorkerImpl.h" |
11 #include "wtf/WTF.h" | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 WebSharedWorkerReportingProxyImpl::WebSharedWorkerReportingProxyImpl( | 15 WebSharedWorkerReportingProxyImpl::WebSharedWorkerReportingProxyImpl( |
16 WebSharedWorkerImpl* worker, | 16 WebSharedWorkerImpl* worker, |
17 ParentFrameTaskRunners* parentFrameTaskRunners) | 17 ParentFrameTaskRunners* parentFrameTaskRunners) |
18 : m_worker(worker), m_parentFrameTaskRunners(parentFrameTaskRunners) { | 18 : m_worker(worker), m_parentFrameTaskRunners(parentFrameTaskRunners) { |
19 DCHECK(isMainThread()); | 19 DCHECK(isMainThread()); |
20 } | 20 } |
21 | 21 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 ->postTask(BLINK_FROM_HERE, | 85 ->postTask(BLINK_FROM_HERE, |
86 crossThreadBind(&WebSharedWorkerImpl::didTerminateWorkerThread, | 86 crossThreadBind(&WebSharedWorkerImpl::didTerminateWorkerThread, |
87 crossThreadUnretained(m_worker))); | 87 crossThreadUnretained(m_worker))); |
88 } | 88 } |
89 | 89 |
90 DEFINE_TRACE(WebSharedWorkerReportingProxyImpl) { | 90 DEFINE_TRACE(WebSharedWorkerReportingProxyImpl) { |
91 visitor->trace(m_parentFrameTaskRunners); | 91 visitor->trace(m_parentFrameTaskRunners); |
92 } | 92 } |
93 | 93 |
94 } // namespace blink | 94 } // namespace blink |
OLD | NEW |