OLD | NEW |
1 // Copyright (c) 2011 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" |
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 |
273 // Notify the browser that the extension is idle so it's lazy background page | 285 // Notify the browser that the extension is idle so it's lazy background page |
274 // can be closed. | 286 // can be closed. |
275 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle, | 287 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle, |
276 std::string /* extension_id */) | 288 std::string /* extension_id */) |
277 | 289 |
278 // Notify the browser that an event has finished being dispatched. | 290 // Notify the browser that an event has finished being dispatched. |
279 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck, | 291 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck, |
280 std::string /* extension_id */) | 292 std::string /* extension_id */) |
281 | 293 |
282 | 294 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // Response to the renderer for the above message. | 370 // Response to the renderer for the above message. |
359 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 371 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
360 std::string /* channel_id */, | 372 std::string /* channel_id */, |
361 std::string /* error */, | 373 std::string /* error */, |
362 int32 /* callback_id */) | 374 int32 /* callback_id */) |
363 | 375 |
364 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 376 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
365 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 377 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
366 int /* target_port_id */, | 378 int /* target_port_id */, |
367 std::string /* message */) | 379 std::string /* message */) |
OLD | NEW |