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 23 matching lines...) Expand all Loading... |
34 // | inspected page <--> DevToolsAgent | | 34 // | inspected page <--> DevToolsAgent | |
35 // | | | 35 // | | |
36 // | (inspected page renderer process) | | 36 // | (inspected page renderer process) | |
37 // ----------------------------------- | 37 // ----------------------------------- |
38 // | 38 // |
39 // This file describes developer tools message types. | 39 // This file describes developer tools message types. |
40 | 40 |
41 // Multiply-included message file, no standard include guard. | 41 // Multiply-included message file, no standard include guard. |
42 #include <map> | 42 #include <map> |
43 #include <string> | 43 #include <string> |
| 44 #include <vector> |
44 | 45 |
45 #include "content/common/content_export.h" | 46 #include "content/common/content_export.h" |
46 #include "content/public/common/common_param_traits.h" | 47 #include "content/public/common/common_param_traits.h" |
47 #include "content/public/common/console_message_level.h" | 48 #include "content/public/common/console_message_level.h" |
48 #include "ipc/ipc_message_macros.h" | 49 #include "ipc/ipc_message_macros.h" |
49 | 50 |
50 #undef IPC_MESSAGE_EXPORT | 51 #undef IPC_MESSAGE_EXPORT |
51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 52 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
52 | 53 |
53 #define IPC_MESSAGE_START DevToolsMsgStart | 54 #define IPC_MESSAGE_START DevToolsMsgStart |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // cross-navigation instrumentation. | 116 // cross-navigation instrumentation. |
116 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, | 117 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, |
117 std::string /* state */) | 118 std::string /* state */) |
118 | 119 |
119 // Clears browser cache. | 120 // Clears browser cache. |
120 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) | 121 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) |
121 | 122 |
122 // Clears browser cookies. | 123 // Clears browser cookies. |
123 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) | 124 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) |
124 | 125 |
| 126 // Updates list of blocked domains. |
| 127 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SetBlockedDomains, |
| 128 std::vector<std::string> /* blocked_domains */) |
| 129 |
125 //----------------------------------------------------------------------------- | 130 //----------------------------------------------------------------------------- |
126 // These are messages sent from the GPU process to the inspected renderer. | 131 // These are messages sent from the GPU process to the inspected renderer. |
127 | 132 |
128 IPC_STRUCT_BEGIN(GpuTaskInfo) | 133 IPC_STRUCT_BEGIN(GpuTaskInfo) |
129 IPC_STRUCT_MEMBER(double, timestamp) | 134 IPC_STRUCT_MEMBER(double, timestamp) |
130 IPC_STRUCT_MEMBER(int, phase) | 135 IPC_STRUCT_MEMBER(int, phase) |
131 IPC_STRUCT_MEMBER(bool, foreign) | 136 IPC_STRUCT_MEMBER(bool, foreign) |
132 IPC_STRUCT_MEMBER(uint64, used_gpu_memory_bytes) | 137 IPC_STRUCT_MEMBER(uint64, used_gpu_memory_bytes) |
133 IPC_STRUCT_END() | 138 IPC_STRUCT_END() |
134 | 139 |
135 // Recorded events are passed in chunks to the renderer process. | 140 // Recorded events are passed in chunks to the renderer process. |
136 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, | 141 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, |
137 std::vector<GpuTaskInfo> /* gpu_tasks */) | 142 std::vector<GpuTaskInfo> /* gpu_tasks */) |
138 | 143 |
139 //----------------------------------------------------------------------------- | 144 //----------------------------------------------------------------------------- |
140 // These are messages sent from the inspected page renderer to the worker | 145 // These are messages sent from the inspected page renderer to the worker |
141 // renderer. | 146 // renderer. |
OLD | NEW |