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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // cross-navigation instrumentation. | 110 // cross-navigation instrumentation. |
111 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, | 111 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, |
112 std::string /* state */) | 112 std::string /* state */) |
113 | 113 |
114 // Clears browser cache. | 114 // Clears browser cache. |
115 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) | 115 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) |
116 | 116 |
117 // Clears browser cookies. | 117 // Clears browser cookies. |
118 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) | 118 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) |
119 | 119 |
| 120 // Disables / reenables network. |
| 121 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DisableNetwork, |
| 122 bool /* disable */) |
| 123 |
120 //----------------------------------------------------------------------------- | 124 //----------------------------------------------------------------------------- |
121 // 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. |
122 | 126 |
123 IPC_STRUCT_BEGIN(GpuTaskInfo) | 127 IPC_STRUCT_BEGIN(GpuTaskInfo) |
124 IPC_STRUCT_MEMBER(double, timestamp) | 128 IPC_STRUCT_MEMBER(double, timestamp) |
125 IPC_STRUCT_MEMBER(int, phase) | 129 IPC_STRUCT_MEMBER(int, phase) |
126 IPC_STRUCT_MEMBER(bool, foreign) | 130 IPC_STRUCT_MEMBER(bool, foreign) |
127 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes) | 131 IPC_STRUCT_MEMBER(uint64, gpu_memory_used_bytes) |
128 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) | 132 IPC_STRUCT_MEMBER(uint64, gpu_memory_limit_bytes) |
129 IPC_STRUCT_END() | 133 IPC_STRUCT_END() |
130 | 134 |
131 // Recorded events are passed in chunks to the renderer process. | 135 // Recorded events are passed in chunks to the renderer process. |
132 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, | 136 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, |
133 std::vector<GpuTaskInfo> /* gpu_tasks */) | 137 std::vector<GpuTaskInfo> /* gpu_tasks */) |
134 | 138 |
135 //----------------------------------------------------------------------------- | 139 //----------------------------------------------------------------------------- |
136 // 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 |
137 // renderer. | 141 // renderer. |
OLD | NEW |