OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module devtools_service; | 5 module devtools_service; |
6 | 6 |
7 // The DevTools service exposes two interfaces: | 7 // The DevTools service exposes two interfaces: |
8 // - DevToolsCoordinator: Privileged interface used by the shell to setup the | 8 // - DevToolsCoordinator: Privileged interface used by the shell to setup the |
9 // service and perform other control operations. Other applications are not | 9 // service and perform other control operations. Other applications are not |
10 // able to request this interface. | 10 // able to request this interface. |
(...skipping 12 matching lines...) Expand all Loading... |
23 interface DevToolsRegistry { | 23 interface DevToolsRegistry { |
24 // Registers a DevTools agent. | 24 // Registers a DevTools agent. |
25 RegisterAgent(DevToolsAgent agent); | 25 RegisterAgent(DevToolsAgent agent); |
26 }; | 26 }; |
27 | 27 |
28 interface DevToolsAgent { | 28 interface DevToolsAgent { |
29 // Sets/resets a client to receive event notifications and responses for | 29 // Sets/resets a client to receive event notifications and responses for |
30 // DispatchProtocolMessage() calls. If a client doesn't want to receive | 30 // DispatchProtocolMessage() calls. If a client doesn't want to receive |
31 // messages anymore, it could simply close the underlying message pipe of | 31 // messages anymore, it could simply close the underlying message pipe of |
32 // |client|. | 32 // |client|. |
33 SetClient(DevToolsAgentClient client); | 33 SetClient(DevToolsAgentClient client, string client_id); |
34 | 34 |
35 // Sends a command (in remote debugging protocol JSON format) to the agent. | 35 // Sends a command (in remote debugging protocol JSON format) to the agent. |
36 DispatchProtocolMessage(string message); | 36 DispatchProtocolMessage(string message); |
37 }; | 37 }; |
38 | 38 |
39 interface DevToolsAgentClient { | 39 interface DevToolsAgentClient { |
40 // Sends a notification or response message (in remote debugging protocol JSON | 40 // Sends a notification or response message (in remote debugging protocol JSON |
41 // format) to the client. | 41 // format) to the client. |
42 DispatchProtocolMessage(string message); | 42 DispatchProtocolMessage(string message); |
43 }; | 43 }; |
OLD | NEW |