Index: Source/core/workers/WorkerInspectorProxy.h |
diff --git a/Source/core/workers/WorkerInspectorProxy.h b/Source/core/workers/WorkerInspectorProxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d55a1e604a10732d56039e164a86807d937102d9 |
--- /dev/null |
+++ b/Source/core/workers/WorkerInspectorProxy.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WorkerInspectorProxy_h |
+#define WorkerInspectorProxy_h |
+ |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+// A proxy for communication between worker and inspector. |
yurys
2014/08/18 06:20:18
To avoid misunderstanding I'd rather be more speci
|
+// All of these methods should be called on main thread. |
yurys
2014/08/18 06:20:18
... the main ...
|
+class WorkerInspectorProxy { |
+public: |
+ virtual ~WorkerInspectorProxy() { } |
+ |
+ class PageInspector { |
+ public: |
+ virtual ~PageInspector() { } |
+ virtual void dispatchMessageFromWorker(const String&) = 0; |
+ }; |
+ |
+ virtual void connectToInspector(PageInspector*) = 0; |
+ virtual void disconnectFromInspector() = 0; |
+ virtual void sendMessageToInspector(const String&) = 0; |
+ virtual void writeTimelineStartedEvent(const String& sessionId) = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WorkerInspectorProxy_h |