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

Side by Side Diff: content/common/devtools_messages.h

Issue 511873002: DevTools: use explicit IPC messages for enabling/disabling tracing instead of intercepting protocol… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Developer tools consist of the following parts: 5 // Developer tools consist of the following parts:
6 // 6 //
7 // DevToolsAgent lives in the renderer of an inspected page and provides access 7 // DevToolsAgent lives in the renderer of an inspected page and provides access
8 // to the pages resources, DOM, v8 etc. by means of IPC messages. 8 // to the pages resources, DOM, v8 etc. by means of IPC messages.
9 // 9 //
10 // DevToolsClient is a thin delegate that lives in the tools front-end 10 // DevToolsClient is a thin delegate that lives in the tools front-end
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Transport from Inspector frontend to frontend host. 108 // Transport from Inspector frontend to frontend host.
109 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder, 109 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder,
110 std::string /* message */) 110 std::string /* message */)
111 111
112 // Updates agent runtime state stored in devtools manager in order to support 112 // Updates agent runtime state stored in devtools manager in order to support
113 // cross-navigation instrumentation. 113 // cross-navigation instrumentation.
114 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, 114 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState,
115 std::string /* state */) 115 std::string /* state */)
116 116
117 // Tells the host to enable trace event recording.
118 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_EnableTracing,
119 std::string /* category_filter */)
120
121 // Tells the host to disable trace event recording.
122 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_DisableTracing)
123
117 //----------------------------------------------------------------------------- 124 //-----------------------------------------------------------------------------
118 // These are messages sent from the GPU process to the inspected renderer. 125 // These are messages sent from the GPU process to the inspected renderer.
119 126
120 IPC_STRUCT_BEGIN(GpuTaskInfo) 127 IPC_STRUCT_BEGIN(GpuTaskInfo)
121 IPC_STRUCT_MEMBER(double, timestamp) 128 IPC_STRUCT_MEMBER(double, timestamp)
122 IPC_STRUCT_MEMBER(int, phase) 129 IPC_STRUCT_MEMBER(int, phase)
123 IPC_STRUCT_MEMBER(bool, foreign) 130 IPC_STRUCT_MEMBER(bool, foreign)
124 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes) 131 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes)
125 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) 132 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes)
126 IPC_STRUCT_END() 133 IPC_STRUCT_END()
127 134
128 // Recorded events are passed in chunks to the renderer process. 135 // Recorded events are passed in chunks to the renderer process.
129 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, 136 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk,
130 std::vector<GpuTaskInfo> /* gpu_tasks */) 137 std::vector<GpuTaskInfo> /* gpu_tasks */)
131 138
132 //----------------------------------------------------------------------------- 139 //-----------------------------------------------------------------------------
133 // These are messages sent from the inspected page renderer to the worker 140 // These are messages sent from the inspected page renderer to the worker
134 // renderer. 141 // renderer.
OLDNEW
« no previous file with comments | « content/browser/devtools/render_view_devtools_agent_host.cc ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698