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 "wtf/Forward.h" | 8 #include "wtf/Forward.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual ~PageInspector() { } | 26 virtual ~PageInspector() { } |
27 virtual void dispatchMessageFromWorker(const String&) = 0; | 27 virtual void dispatchMessageFromWorker(const String&) = 0; |
28 }; | 28 }; |
29 | 29 |
30 void workerThreadCreated(ExecutionContext*, WorkerThread*, const KURL&); | 30 void workerThreadCreated(ExecutionContext*, WorkerThread*, const KURL&); |
31 void workerThreadTerminated(); | 31 void workerThreadTerminated(); |
32 | 32 |
33 void connectToInspector(PageInspector*); | 33 void connectToInspector(PageInspector*); |
34 void disconnectFromInspector(); | 34 void disconnectFromInspector(); |
35 void sendMessageToInspector(const String&); | 35 void sendMessageToInspector(const String&); |
36 void writeTimelineStartedEvent(const String& sessionId); | 36 void writeTimelineStartedEvent(const String& sessionId, int workerId); |
37 | 37 |
38 PageInspector* pageInspector() const { return m_pageInspector; }; | 38 PageInspector* pageInspector() const { return m_pageInspector; } |
39 | 39 |
40 private: | 40 private: |
41 WorkerInspectorProxy(); | 41 WorkerInspectorProxy(); |
42 | 42 |
43 WorkerThread* m_workerThread; | 43 WorkerThread* m_workerThread; |
44 ExecutionContext* m_executionContext; | 44 ExecutionContext* m_executionContext; |
45 WorkerInspectorProxy::PageInspector* m_pageInspector; | 45 WorkerInspectorProxy::PageInspector* m_pageInspector; |
46 }; | 46 }; |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif // WorkerInspectorProxy_h | 50 #endif // WorkerInspectorProxy_h |
OLD | NEW |