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 talking to the worker inspector on the worker thread. |
| 13 // All of these methods should be called on the main thread. |
| 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 |