| 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> | 8 #include <string> |
| 9 | 9 |
| 10 #include "webkit/glue/devtools/devtools_rpc.h" | 10 #include "webkit/glue/devtools/devtools_rpc.h" |
| 11 | 11 |
| 12 #define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 12 #define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
| 13 METHOD4) \ | |
| 14 /* Stops v8 execution as soon as it gets control. */ \ | 13 /* Stops v8 execution as soon as it gets control. */ \ |
| 15 METHOD0(DebugBreak) \ | 14 METHOD0(DebugBreak) \ |
| 16 \ | 15 \ |
| 17 /* Requests global context id of the inspected tab. */ \ | 16 /* Requests global context id of the inspected tab. */ \ |
| 18 METHOD0(GetContextId) \ | 17 METHOD0(GetContextId) \ |
| 19 \ | 18 \ |
| 20 /* Starts profiling. */ \ | 19 /* Starts profiling. */ \ |
| 21 METHOD1(StartProfiling, int /* flags */) \ | 20 METHOD1(StartProfiling, int /* flags */) \ |
| 22 \ | 21 \ |
| 23 /* Stops profiling. */ \ | 22 /* Stops profiling. */ \ |
| 24 METHOD1(StopProfiling, int /* flags */) \ | 23 METHOD1(StopProfiling, int /* flags */) \ |
| 25 \ | 24 \ |
| 26 /* Requests current profiler state. */ \ | 25 /* Requests current profiler state. */ \ |
| 27 METHOD0(GetActiveProfilerModules) \ | 26 METHOD0(GetActiveProfilerModules) \ |
| 28 \ | 27 \ |
| 29 /* Retrieves next portion of profiler log. */ \ | 28 /* Retrieves next portion of profiler log. */ \ |
| 30 METHOD0(GetNextLogLines) | 29 METHOD0(GetNextLogLines) |
| 31 | 30 |
| 32 DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) | 31 DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) |
| 33 | 32 |
| 34 #define DEBUGGER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 33 #define DEBUGGER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
| 35 METHOD4) \ | |
| 36 METHOD1(DebuggerOutput, std::string /* output text */) \ | 34 METHOD1(DebuggerOutput, std::string /* output text */) \ |
| 37 \ | 35 \ |
| 38 /* Pushes debugger context id into the client. */ \ | 36 /* Pushes debugger context id into the client. */ \ |
| 39 METHOD1(SetContextId, int /* context id */) \ | 37 METHOD1(SetContextId, int /* context id */) \ |
| 40 \ | 38 \ |
| 41 /* Response to GetActiveProfilerModules. */ \ | 39 /* Response to GetActiveProfilerModules. */ \ |
| 42 METHOD1(DidGetActiveProfilerModules, int /* flags */) \ | 40 METHOD1(DidGetActiveProfilerModules, int /* flags */) \ |
| 43 \ | 41 \ |
| 44 /* Response to GetNextLogLines. */ \ | 42 /* Response to GetNextLogLines. */ \ |
| 45 METHOD1(DidGetNextLogLines, std::string /* log */) | 43 METHOD1(DidGetNextLogLines, std::string /* log */) |
| 46 | 44 |
| 47 DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT) | 45 DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT) |
| 48 | 46 |
| 49 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ | 47 #endif // WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ |
| OLD | NEW |