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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« 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