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

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: Comments addressed. 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
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | Source/core/workers/WorkerMessagingProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ad075f7367b3da73993016cb729ba509c1119b50
--- /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 talking to the worker inspector on the worker thread.
+// All of these methods should be called on the main thread.
+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
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | Source/core/workers/WorkerMessagingProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698