OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
11 #include "chrome/common/extensions/extension_permission_set.h" | 11 #include "chrome/common/extensions/extension_permission_set.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddListener, | 263 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddListener, |
264 std::string /* extension_id */, | 264 std::string /* extension_id */, |
265 std::string /* name */) | 265 std::string /* name */) |
266 | 266 |
267 // Notify the browser that the given extension removed a listener from an | 267 // Notify the browser that the given extension removed a listener from an |
268 // event. | 268 // event. |
269 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener, | 269 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener, |
270 std::string /* extension_id */, | 270 std::string /* extension_id */, |
271 std::string /* name */) | 271 std::string /* name */) |
272 | 272 |
273 // Notify the browser that the given extension added a listener to an event from | |
274 // a lazy background page. | |
275 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, | |
276 std::string /* extension_id */, | |
277 std::string /* name */) | |
278 | |
279 // Notify the browser that the given extension is no longer interested in | |
280 // receiving the given event from a lazy background page. | |
281 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, | |
282 std::string /* extension_id */, | |
283 std::string /* name */) | |
284 | |
285 // Notify the browser that the extension is idle so it's lazy background page | 273 // Notify the browser that the extension is idle so it's lazy background page |
286 // can be closed. | 274 // can be closed. |
287 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle, | 275 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle, |
288 std::string /* extension_id */) | 276 std::string /* extension_id */) |
289 | 277 |
290 // Notify the browser that an event has finished being dispatched. | 278 // Notify the browser that an event has finished being dispatched. |
291 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck, | 279 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck, |
292 std::string /* extension_id */) | 280 std::string /* extension_id */) |
293 | 281 |
294 | 282 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 // Response to the renderer for the above message. | 358 // Response to the renderer for the above message. |
371 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 359 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
372 std::string /* channel_id */, | 360 std::string /* channel_id */, |
373 std::string /* error */, | 361 std::string /* error */, |
374 int32 /* callback_id */) | 362 int32 /* callback_id */) |
375 | 363 |
376 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 364 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
377 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 365 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
378 int /* target_port_id */, | 366 int /* target_port_id */, |
379 std::string /* message */) | 367 std::string /* message */) |
OLD | NEW |