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 #ifndef WorkerInspectorProxy_h | 5 #ifndef WorkerInspectorProxy_h |
6 #define WorkerInspectorProxy_h | 6 #define WorkerInspectorProxy_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "public/platform/WebThread.h" |
9 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class ExecutionContext; | 14 class ExecutionContext; |
14 class KURL; | 15 class KURL; |
| 16 class WebTraceLocation; |
15 class WorkerGlobalScopeProxy; | 17 class WorkerGlobalScopeProxy; |
16 class WorkerThread; | 18 class WorkerThread; |
17 | 19 |
18 // A proxy for talking to the worker inspector on the worker thread. | 20 // A proxy for talking to the worker inspector on the worker thread. |
19 // All of these methods should be called on the main thread. | 21 // All of these methods should be called on the main thread. |
20 class CORE_EXPORT WorkerInspectorProxy final { | 22 class CORE_EXPORT WorkerInspectorProxy final { |
21 public: | 23 public: |
22 static PassOwnPtr<WorkerInspectorProxy> create(); | 24 static PassOwnPtr<WorkerInspectorProxy> create(); |
23 | 25 |
24 ~WorkerInspectorProxy(); | 26 ~WorkerInspectorProxy(); |
(...skipping 14 matching lines...) Expand all Loading... |
39 void writeTimelineStartedEvent(const String& sessionId, const String& worker
Id); | 41 void writeTimelineStartedEvent(const String& sessionId, const String& worker
Id); |
40 | 42 |
41 PageInspector* pageInspector() const { return m_pageInspector; } | 43 PageInspector* pageInspector() const { return m_pageInspector; } |
42 | 44 |
43 void setWorkerGlobalScopeProxy(WorkerGlobalScopeProxy* proxy) { m_workerGlob
alScopeProxy = proxy; } | 45 void setWorkerGlobalScopeProxy(WorkerGlobalScopeProxy* proxy) { m_workerGlob
alScopeProxy = proxy; } |
44 WorkerGlobalScopeProxy* workerGlobalScopeProxy() const { return m_workerGlob
alScopeProxy; } | 46 WorkerGlobalScopeProxy* workerGlobalScopeProxy() const { return m_workerGlob
alScopeProxy; } |
45 | 47 |
46 private: | 48 private: |
47 WorkerInspectorProxy(); | 49 WorkerInspectorProxy(); |
48 | 50 |
| 51 void addDebuggerTaskForWorker(const WebTraceLocation&, PassOwnPtr<WebThread:
:Task>); |
| 52 |
49 WorkerThread* m_workerThread; | 53 WorkerThread* m_workerThread; |
50 ExecutionContext* m_executionContext; | 54 ExecutionContext* m_executionContext; |
51 WorkerInspectorProxy::PageInspector* m_pageInspector; | 55 WorkerInspectorProxy::PageInspector* m_pageInspector; |
52 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy; | 56 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy; |
53 }; | 57 }; |
54 | 58 |
55 } // namespace blink | 59 } // namespace blink |
56 | 60 |
57 #endif // WorkerInspectorProxy_h | 61 #endif // WorkerInspectorProxy_h |
OLD | NEW |