| OLD | NEW |
| 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 Loading... |
| 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 | |
| 124 //----------------------------------------------------------------------------- | 117 //----------------------------------------------------------------------------- |
| 125 // These are messages sent from the GPU process to the inspected renderer. | 118 // These are messages sent from the GPU process to the inspected renderer. |
| 126 | 119 |
| 127 IPC_STRUCT_BEGIN(GpuTaskInfo) | 120 IPC_STRUCT_BEGIN(GpuTaskInfo) |
| 128 IPC_STRUCT_MEMBER(double, timestamp) | 121 IPC_STRUCT_MEMBER(double, timestamp) |
| 129 IPC_STRUCT_MEMBER(int, phase) | 122 IPC_STRUCT_MEMBER(int, phase) |
| 130 IPC_STRUCT_MEMBER(bool, foreign) | 123 IPC_STRUCT_MEMBER(bool, foreign) |
| 131 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes) | 124 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes) |
| 132 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) | 125 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) |
| 133 IPC_STRUCT_END() | 126 IPC_STRUCT_END() |
| 134 | 127 |
| 135 // Recorded events are passed in chunks to the renderer process. | 128 // Recorded events are passed in chunks to the renderer process. |
| 136 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, | 129 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, |
| 137 std::vector<GpuTaskInfo> /* gpu_tasks */) | 130 std::vector<GpuTaskInfo> /* gpu_tasks */) |
| 138 | 131 |
| 139 //----------------------------------------------------------------------------- | 132 //----------------------------------------------------------------------------- |
| 140 // These are messages sent from the inspected page renderer to the worker | 133 // These are messages sent from the inspected page renderer to the worker |
| 141 // renderer. | 134 // renderer. |
| OLD | NEW |