OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WorkerInspectorProxy_h | |
6 #define WorkerInspectorProxy_h | |
7 | |
8 #include "wtf/text/WTFString.h" | |
9 | |
10 namespace blink { | |
11 | |
12 // A proxy for communication between worker and inspector. | |
yurys
2014/08/18 06:20:18
To avoid misunderstanding I'd rather be more speci
| |
13 // All of these methods should be called on main thread. | |
yurys
2014/08/18 06:20:18
... the main ...
| |
14 class WorkerInspectorProxy { | |
15 public: | |
16 virtual ~WorkerInspectorProxy() { } | |
17 | |
18 class PageInspector { | |
19 public: | |
20 virtual ~PageInspector() { } | |
21 virtual void dispatchMessageFromWorker(const String&) = 0; | |
22 }; | |
23 | |
24 virtual void connectToInspector(PageInspector*) = 0; | |
25 virtual void disconnectFromInspector() = 0; | |
26 virtual void sendMessageToInspector(const String&) = 0; | |
27 virtual void writeTimelineStartedEvent(const String& sessionId) = 0; | |
28 }; | |
29 | |
30 } // namespace blink | |
31 | |
32 #endif // WorkerInspectorProxy_h | |
OLD | NEW |