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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, | 338 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, |
339 std::string /* extension_id */, | 339 std::string /* extension_id */, |
340 std::string /* name */) | 340 std::string /* name */) |
341 | 341 |
342 // Notify the browser that the given extension is no longer interested in | 342 // Notify the browser that the given extension is no longer interested in |
343 // receiving the given event from a lazy background page. | 343 // receiving the given event from a lazy background page. |
344 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, | 344 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, |
345 std::string /* extension_id */, | 345 std::string /* extension_id */, |
346 std::string /* name */) | 346 std::string /* name */) |
347 | 347 |
| 348 // Notify the browser that the given extension added a listener to instances of |
| 349 // the named event that satisfy the filter. |
| 350 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddFilteredListener, |
| 351 std::string /* extension_id */, |
| 352 std::string /* name */, |
| 353 DictionaryValue /* filter */, |
| 354 bool /* lazy */) |
| 355 |
| 356 // Notify the browser that the given extension is no longer interested in |
| 357 // instances of the named event that satisfy the filter. |
| 358 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener, |
| 359 std::string /* extension_id */, |
| 360 std::string /* name */, |
| 361 DictionaryValue /* filter */, |
| 362 bool /* lazy */) |
| 363 |
348 // Notify the browser that an event has finished being dispatched. | 364 // Notify the browser that an event has finished being dispatched. |
349 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) | 365 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) |
350 | 366 |
351 // Open a channel to all listening contexts owned by the extension with | 367 // Open a channel to all listening contexts owned by the extension with |
352 // the given ID. This always returns a valid port ID which can be used for | 368 // the given ID. This always returns a valid port ID which can be used for |
353 // sending messages. If an error occurred, the opener will be notified | 369 // sending messages. If an error occurred, the opener will be notified |
354 // asynchronously. | 370 // asynchronously. |
355 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 371 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
356 int /* routing_id */, | 372 int /* routing_id */, |
357 std::string /* source_extension_id */, | 373 std::string /* source_extension_id */, |
(...skipping 91 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 |