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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/dev_tools_messages.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/dev_tools_messages_internal.h
===================================================================
--- chrome/renderer/dev_tools_messages_internal.h (revision 0)
+++ chrome/renderer/dev_tools_messages_internal.h (revision 0)
@@ -0,0 +1,79 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This header is meant to be included in multiple passes, hence no traditional
+// header guard.
+// See ipc_message_macros.h for explanation of the macros and passes.
+
+// Developer tools consist of the following parts:
+//
+// DevToolsAgent lives in the renderer of an inspected page and provides access
+// to the pages resources, DOM, v8 etc. by means of IPC messages.
+//
+// DevToolsClient is a thin delegate that lives in the tools front-end renderer
+// and converts IPC messages to frontend method calls and allows the frontend
+// to send messages to the DevToolsAgent.
+//
+// All the messages are routed through browser process.
+//
+// Chain of communication between the components may be described by the
+// following diagram:
+// ----------------------------
+// | (tools frontend |
+// | renderer process) |
+// | | --------------------
+// |tools <--> DevToolsClient+<-- IPC -->+ (browser process) |
+// |frontend | | |
+// ---------------------------- ---------+----------
+// ^
+// |
+// IPC
+// |
+// v
+// --------------------------+--------
+// | inspected page <--> DevToolsAgent |
+// | |
+// | (inspected page renderer process) |
+// -----------------------------------
+//
+// This file describes developer tools message types.
+
+#include "chrome/common/ipc_message_macros.h"
+
+// These are messages sent from DevToolsAgent to DevToolsClient through the
+// browser.
+IPC_BEGIN_MESSAGES(DevToolsClient)
+
+ // Response message for DevToolsAgentMsg_DebugAttach.
+ IPC_MESSAGE_CONTROL0(DevToolsClientMsg_DidDebugAttach)
+
+ // WebKit and JavaScript error messages to log to the console
+ // or debugger UI.
+ IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DebuggerOutput,
+ std::wstring /* msg */)
+
+IPC_END_MESSAGES(DevToolsClient)
+
+
+//-----------------------------------------------------------------------------
+// These are messages sent from DevToolsClient to DevToolsAgent through the
+// browser.
+IPC_BEGIN_MESSAGES(DevToolsAgent)
+
+ // Initialize the V8 debugger in the renderer.
+ IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebugAttach)
+
+ // Shutdown the V8 debugger in the renderer.
+ IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebugDetach)
+
+ // Break V8 execution.
+ IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebugBreak,
+ bool /* force */)
+
+ // Send a command to the V8 debugger.
+ IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebugCommand,
+ std::wstring /* cmd */)
+
+IPC_END_MESSAGES(DevToolsAgent)
+
« 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