OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 content::ConsoleMessageLevel /* level */, | 446 content::ConsoleMessageLevel /* level */, |
447 std::string /* message */) | 447 std::string /* message */) |
448 | 448 |
449 // Notify the renderer that its window has closed. | 449 // Notify the renderer that its window has closed. |
450 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) | 450 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) |
451 | 451 |
452 // Notify the renderer that an extension wants notifications when certain | 452 // Notify the renderer that an extension wants notifications when certain |
453 // searches match the active page. This message replaces the old set of | 453 // searches match the active page. This message replaces the old set of |
454 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from | 454 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from |
455 // each tab to keep the browser updated about changes. | 455 // each tab to keep the browser updated about changes. |
456 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, | 456 IPC_MESSAGE_CONTROL2(ExtensionMsg_WatchPages, |
| 457 std::string, /* event_name */ |
457 std::vector<std::string> /* CSS selectors */) | 458 std::vector<std::string> /* CSS selectors */) |
458 | 459 |
459 // Send by the browser to indicate a Blob handle has been transferred to the | 460 // Send by the browser to indicate a Blob handle has been transferred to the |
460 // renderer. This is sent after the actual extension response, and depends on | 461 // renderer. This is sent after the actual extension response, and depends on |
461 // the sequential nature of IPCs so that the blob has already been caught. | 462 // the sequential nature of IPCs so that the blob has already been caught. |
462 // This is a separate control message, so that the renderer process will send | 463 // This is a separate control message, so that the renderer process will send |
463 // an acknowledgement even if the RenderView has closed or navigated away. | 464 // an acknowledgement even if the RenderView has closed or navigated away. |
464 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, | 465 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, |
465 std::vector<std::string> /* blob_uuids */) | 466 std::vector<std::string> /* blob_uuids */) |
466 | 467 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 | 654 |
654 // Notifies the browser process that a tab has started or stopped matching | 655 // Notifies the browser process that a tab has started or stopped matching |
655 // certain conditions. This message is sent in response to several events: | 656 // certain conditions. This message is sent in response to several events: |
656 // | 657 // |
657 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 658 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
658 // * A new page is loaded. This will be sent after | 659 // * A new page is loaded. This will be sent after |
659 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 660 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
660 // main frame. | 661 // main frame. |
661 // * Something changed on an existing frame causing the set of matching searches | 662 // * Something changed on an existing frame causing the set of matching searches |
662 // to change. | 663 // to change. |
663 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 664 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_OnWatchedPageChange, |
| 665 std::string, /* event_name */ |
664 std::vector<std::string> /* Matching CSS selectors */) | 666 std::vector<std::string> /* Matching CSS selectors */) |
665 | 667 |
666 // Sent by the renderer when it has received a Blob handle from the browser. | 668 // Sent by the renderer when it has received a Blob handle from the browser. |
667 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, | 669 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, |
668 std::vector<std::string> /* blob_uuids */) | 670 std::vector<std::string> /* blob_uuids */) |
OLD | NEW |