OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ |
6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "webkit/glue/devtools/devtools_rpc.h" | 10 #include "webkit/glue/devtools/devtools_rpc.h" |
9 | 11 |
10 #define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 12 #define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ |
11 METHOD4) \ | 13 METHOD4) \ |
12 /* Stops v8 execution as soon as it gets control. */ \ | 14 /* Stops v8 execution as soon as it gets control. */ \ |
13 METHOD0(DebugBreak) \ | 15 METHOD0(DebugBreak) \ |
| 16 \ |
14 /* Requests global context id of the inspected tab. */ \ | 17 /* Requests global context id of the inspected tab. */ \ |
15 METHOD0(GetContextId) | 18 METHOD0(GetContextId) \ |
| 19 \ |
| 20 /* Starts profiling (samples collection). */ \ |
| 21 METHOD0(StartProfiling) \ |
| 22 \ |
| 23 /* Stops profiling (samples collection). */ \ |
| 24 METHOD0(StopProfiling) \ |
| 25 \ |
| 26 /* Retrieves a portion of profiler log. */ \ |
| 27 METHOD1(GetLogLines, int /* position */) |
16 | 28 |
17 DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) | 29 DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) |
18 | 30 |
19 #define DEBUGGER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 31 #define DEBUGGER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ |
20 METHOD4) \ | 32 METHOD4) \ |
21 METHOD1(DebuggerOutput, std::string /* output text */) \ | 33 METHOD1(DebuggerOutput, std::string /* output text */) \ |
| 34 \ |
22 /* Response to GetContextId. */ \ | 35 /* Response to GetContextId. */ \ |
23 METHOD1(DidGetContextId, int /* context id */) | 36 METHOD1(DidGetContextId, int /* context id */) \ |
| 37 \ |
| 38 METHOD2(DidGetLogLines, std::string /* log */, int /* new_position */) |
24 | 39 |
25 DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT) | 40 DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT) |
26 | 41 |
27 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ | 42 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ |
OLD | NEW |