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

Side by Side Diff: chrome/renderer/dev_tools_messages_internal.h

Issue 21543: Add developer tools message handling to renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/renderer/dev_tools_messages.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes.
8
9 // Developer tools consist of the following parts:
10 //
11 // DevToolsAgent lives in the renderer of an inspected page and provides access
12 // to the pages resources, DOM, v8 etc. by means of IPC messages.
13 //
14 // DevToolsClient is a thin delegate that lives in the tools front-end renderer
15 // and converts IPC messages to frontend method calls and allows the frontend
16 // to send messages to the DevToolsAgent.
17 //
18 // All the messages are routed through browser process.
19 //
20 // Chain of communication between the components may be described by the
21 // following diagram:
22 // ----------------------------
23 // | (tools frontend |
24 // | renderer process) |
25 // | | --------------------
26 // |tools <--> DevToolsClient+<-- IPC -->+ (browser process) |
27 // |frontend | | |
28 // ---------------------------- ---------+----------
29 // ^
30 // |
31 // IPC
32 // |
33 // v
34 // --------------------------+--------
35 // | inspected page <--> DevToolsAgent |
36 // | |
37 // | (inspected page renderer process) |
38 // -----------------------------------
39 //
40 // This file describes developer tools message types.
41
42 #include "chrome/common/ipc_message_macros.h"
43
44 // These are messages sent from DevToolsAgent to DevToolsClient through the
45 // browser.
46 IPC_BEGIN_MESSAGES(DevToolsClient)
47
48 // Response message for DevToolsAgentMsg_DebugAttach.
49 IPC_MESSAGE_CONTROL0(DevToolsClientMsg_DidDebugAttach)
50
51 // WebKit and JavaScript error messages to log to the console
52 // or debugger UI.
53 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DebuggerOutput,
54 std::wstring /* msg */)
55
56 IPC_END_MESSAGES(DevToolsClient)
57
58
59 //-----------------------------------------------------------------------------
60 // These are messages sent from DevToolsClient to DevToolsAgent through the
61 // browser.
62 IPC_BEGIN_MESSAGES(DevToolsAgent)
63
64 // Initialize the V8 debugger in the renderer.
65 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebugAttach)
66
67 // Shutdown the V8 debugger in the renderer.
68 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebugDetach)
69
70 // Break V8 execution.
71 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebugBreak,
72 bool /* force */)
73
74 // Send a command to the V8 debugger.
75 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebugCommand,
76 std::wstring /* cmd */)
77
78 IPC_END_MESSAGES(DevToolsAgent)
79
OLDNEW
« no previous file with comments | « chrome/renderer/dev_tools_messages.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698