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 // IPC messages for extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 // SharedMemoryHandle argument consisting of the pickled script data. This | 227 // SharedMemoryHandle argument consisting of the pickled script data. This |
228 // handle is valid in the context of the renderer. | 228 // handle is valid in the context of the renderer. |
229 IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdateUserScripts, | 229 IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdateUserScripts, |
230 base::SharedMemoryHandle) | 230 base::SharedMemoryHandle) |
231 | 231 |
232 // Requests application info for the page. The renderer responds back with | 232 // Requests application info for the page. The renderer responds back with |
233 // ExtensionHostMsg_DidGetApplicationInfo. | 233 // ExtensionHostMsg_DidGetApplicationInfo. |
234 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo, | 234 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo, |
235 int32 /*page_id*/) | 235 int32 /*page_id*/) |
236 | 236 |
237 // Tell the renderer which browser window it's being attached to. | 237 // Tell the render view which browser window it's being attached to. |
238 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, | 238 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, |
239 int /* id of browser window */) | 239 int /* id of browser window */) |
240 | 240 |
241 // Tell the render review what its tab ID is. | |
Aaron Boodman
2012/06/12 21:21:38
heh.
not at google - send to devlin
2012/06/12 21:24:25
oops
| |
242 IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId, | |
243 int /* id of tab */) | |
244 | |
241 // Tell the renderer to update an extension's permission set. | 245 // Tell the renderer to update an extension's permission set. |
242 IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions, | 246 IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions, |
243 int /* UpdateExtensionPermissionsInfo::REASON */, | 247 int /* UpdateExtensionPermissionsInfo::REASON */, |
244 std::string /* extension_id */, | 248 std::string /* extension_id */, |
245 ExtensionAPIPermissionSet /* permissions */, | 249 ExtensionAPIPermissionSet /* permissions */, |
246 URLPatternSet /* explicit_hosts */, | 250 URLPatternSet /* explicit_hosts */, |
247 URLPatternSet /* scriptable_hosts */) | 251 URLPatternSet /* scriptable_hosts */) |
248 | 252 |
253 // Tell the renderer about new tab-specific permissions for an extension. | |
254 IPC_MESSAGE_CONTROL4(ExtensionMsg_UpdateTabSpecificPermissions, | |
255 int32 /* page_id (only relevant for the target tab) */, | |
256 int /* tab_id */, | |
257 std::string /* extension_id */, | |
258 URLPatternSet /* host */) | |
259 | |
260 // Tell the renderer to clear tab-specific permissions for some extensions. | |
261 IPC_MESSAGE_CONTROL2(ExtensionMsg_ClearTabSpecificPermissions, | |
262 int /* tab_id */, | |
263 std::vector<std::string> /* extension_ids */) | |
264 | |
249 // Tell the renderer which type this view is. | 265 // Tell the renderer which type this view is. |
250 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, | 266 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, |
251 chrome::ViewType /* view_type */) | 267 chrome::ViewType /* view_type */) |
252 | 268 |
253 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 269 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
254 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI, | 270 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI, |
255 bool /* adblock */, | 271 bool /* adblock */, |
256 bool /* adblock_plus */, | 272 bool /* adblock_plus */, |
257 bool /* other_webrequest */) | 273 bool /* other_webrequest */) |
258 | 274 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
449 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) | 465 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) |
450 | 466 |
451 // Informs the browser there is one less thing keeping the lazy background page | 467 // Informs the browser there is one less thing keeping the lazy background page |
452 // alive. | 468 // alive. |
453 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) | 469 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) |
454 | 470 |
455 // Fetches a globally unique ID (for the lifetime of the browser) from the | 471 // Fetches a globally unique ID (for the lifetime of the browser) from the |
456 // browser process. | 472 // browser process. |
457 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 473 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
458 int /* unique_id */) | 474 int /* unique_id */) |
OLD | NEW |