Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: Source/core/workers/WorkerInspectorProxy.h

Issue 477313002: DevTools: Extract WorkerInspectorProxy interface from WorkerGlobalScopeProxy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed compile Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698