OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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" | 5 #include "config.h" |
6 | 6 |
7 #include "core/workers/WorkerInspectorProxy.h" | 7 #include "core/workers/WorkerInspectorProxy.h" |
8 | 8 |
9 #include "core/dom/CrossThreadTask.h" | 9 #include "core/dom/CrossThreadTask.h" |
10 #include "core/inspector/InspectorInstrumentation.h" | 10 #include "core/inspector/InspectorInstrumentation.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 void WorkerInspectorProxy::sendMessageToInspector(const String& message) | 82 void WorkerInspectorProxy::sendMessageToInspector(const String& message) |
83 { | 83 { |
84 if (!m_workerThread) | 84 if (!m_workerThread) |
85 return; | 85 return; |
86 m_workerThread->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa
ckendTask, String(message))); | 86 m_workerThread->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa
ckendTask, String(message))); |
87 m_workerThread->interruptAndDispatchInspectorCommands(); | 87 m_workerThread->interruptAndDispatchInspectorCommands(); |
88 } | 88 } |
89 | 89 |
90 void WorkerInspectorProxy::writeTimelineStartedEvent(const String& sessionId) | 90 void WorkerInspectorProxy::writeTimelineStartedEvent(const String& sessionId, in
t workerId) |
91 { | 91 { |
92 if (!m_workerThread) | 92 if (!m_workerThread) |
93 return; | 93 return; |
94 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Tracin
gSessionIdForWorker", "data", InspectorTracingSessionIdForWorkerEvent::data(sess
ionId, m_workerThread)); | 94 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Tracin
gSessionIdForWorker", "data", InspectorTracingSessionIdForWorkerEvent::data(sess
ionId, workerId, m_workerThread)); |
95 } | 95 } |
96 | 96 |
97 } // namespace blink | 97 } // namespace blink |
OLD | NEW |