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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, | 360 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, |
361 std::string /* extension_id */, | 361 std::string /* extension_id */, |
362 std::string /* name */) | 362 std::string /* name */) |
363 | 363 |
364 // Notify the browser that the given extension is no longer interested in | 364 // Notify the browser that the given extension is no longer interested in |
365 // receiving the given event from a lazy background page. | 365 // receiving the given event from a lazy background page. |
366 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, | 366 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, |
367 std::string /* extension_id */, | 367 std::string /* extension_id */, |
368 std::string /* name */) | 368 std::string /* name */) |
369 | 369 |
| 370 // Notify the browser that the given extension added a listener to instances of |
| 371 // the named event that satisfy the filter. |
| 372 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddFilteredListener, |
| 373 std::string /* extension_id */, |
| 374 std::string /* name */, |
| 375 DictionaryValue /* filter */, |
| 376 bool /* lazy */) |
| 377 |
| 378 // Notify the browser that the given extension is no longer interested in |
| 379 // instances of the named event that satisfy the filter. |
| 380 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener, |
| 381 std::string /* extension_id */, |
| 382 std::string /* name */, |
| 383 DictionaryValue /* filter */, |
| 384 bool /* lazy */) |
| 385 |
370 // Notify the browser that an event has finished being dispatched. | 386 // Notify the browser that an event has finished being dispatched. |
371 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) | 387 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) |
372 | 388 |
373 // Open a channel to all listening contexts owned by the extension with | 389 // Open a channel to all listening contexts owned by the extension with |
374 // the given ID. This always returns a valid port ID which can be used for | 390 // the given ID. This always returns a valid port ID which can be used for |
375 // sending messages. If an error occurred, the opener will be notified | 391 // sending messages. If an error occurred, the opener will be notified |
376 // asynchronously. | 392 // asynchronously. |
377 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, | 393 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, |
378 int /* routing_id */, | 394 int /* routing_id */, |
379 std::string /* source_extension_id */, | 395 std::string /* source_extension_id */, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // alive. | 490 // alive. |
475 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) | 491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) |
476 | 492 |
477 // Fetches a globally unique ID (for the lifetime of the browser) from the | 493 // Fetches a globally unique ID (for the lifetime of the browser) from the |
478 // browser process. | 494 // browser process. |
479 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
480 int /* unique_id */) | 496 int /* unique_id */) |
481 | 497 |
482 // Resumes resource requests for a newly created app window. | 498 // Resumes resource requests for a newly created app window. |
483 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 499 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
OLD | NEW |