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_TOOLS_AGENT_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
6 #define WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
7 | 7 |
8 #include "webkit/glue/devtools/devtools_rpc.h" | 8 #include "webkit/glue/devtools/devtools_rpc.h" |
9 | 9 |
10 // Tools agent provides API for enabling / disabling other agents as well as | 10 // Tools agent provides API for enabling / disabling other agents as well as |
(...skipping 12 matching lines...) Expand all Loading... |
23 String /* function_name */, String /* json_args */) \ | 23 String /* function_name */, String /* json_args */) \ |
24 \ | 24 \ |
25 /* Requests that the agent sends content of the resource with given id to the | 25 /* Requests that the agent sends content of the resource with given id to the |
26 delegate. */ \ | 26 delegate. */ \ |
27 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) | 27 METHOD2(GetResourceContent, int /* call_id */, int /* identifier */) |
28 | 28 |
29 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) | 29 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) |
30 | 30 |
31 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | 31 #define TOOLS_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
32 /* Updates focused node on the client. */ \ | 32 /* Updates focused node on the client. */ \ |
33 METHOD1(FrameNavigate, std::string /* url */) \ | 33 METHOD1(FrameNavigate, String /* url */) \ |
34 \ | 34 \ |
35 /* Response to the DispatchOn*. */ \ | 35 /* Response to the DispatchOn*. */ \ |
36 METHOD3(DidDispatchOn, int /* call_id */, String /* result */, \ | 36 METHOD3(DidDispatchOn, int /* call_id */, String /* result */, \ |
37 String /* exception */) \ | 37 String /* exception */) \ |
38 \ | 38 \ |
39 /* Sends InspectorFrontend message to be dispatched on client. */ \ | 39 /* Sends InspectorFrontend message to be dispatched on client. */ \ |
40 METHOD1(DispatchOnClient, String /* data */) | 40 METHOD1(DispatchOnClient, String /* data */) |
41 | 41 |
42 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) | 42 DEFINE_RPC_CLASS(ToolsAgentDelegate, TOOLS_AGENT_DELEGATE_STRUCT) |
43 | 43 |
44 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | 44 #define TOOLS_AGENT_NATIVE_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ |
45 /* Response to the async call. */ \ | 45 /* Response to the async call. */ \ |
46 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ | 46 METHOD2(DidGetResourceContent, int /* call_id */, String /* content */) \ |
47 | 47 |
48 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) | 48 DEFINE_RPC_CLASS(ToolsAgentNativeDelegate, TOOLS_AGENT_NATIVE_DELEGATE_STRUCT) |
49 | 49 |
50 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ | 50 #endif // WEBKIT_GLUE_DEVTOOLS_TOOLS_AGENT_H_ |
OLD | NEW |