| 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 // Notify the renderer that its window has closed. | 448 // Notify the renderer that its window has closed. |
| 449 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) | 449 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) |
| 450 | 450 |
| 451 // Notify the renderer that an extension wants notifications when certain | 451 // Notify the renderer that an extension wants notifications when certain |
| 452 // searches match the active page. This message replaces the old set of | 452 // searches match the active page. This message replaces the old set of |
| 453 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from | 453 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from |
| 454 // each tab to keep the browser updated about changes. | 454 // each tab to keep the browser updated about changes. |
| 455 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, | 455 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, |
| 456 std::vector<std::string> /* CSS selectors */) | 456 std::vector<std::string> /* CSS selectors */) |
| 457 | 457 |
| 458 // Send by the browser to indicate a Blob handle has been transferred to the |
| 459 // renderer. This is sent after the actual extension response, and depends on |
| 460 // the sequential nature of IPCs so that the blob has already been caught. |
| 461 // This is a separate control message, so that the renderer process will send |
| 462 // an acknowledgement even if the RenderView has closed or navigated away. |
| 463 IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, |
| 464 std::vector<std::string> /* blob_uuids */) |
| 465 |
| 458 // Messages sent from the renderer to the browser. | 466 // Messages sent from the renderer to the browser. |
| 459 | 467 |
| 460 // A renderer sends this message when an extension process starts an API | 468 // A renderer sends this message when an extension process starts an API |
| 461 // request. The browser will always respond with a ExtensionMsg_Response. | 469 // request. The browser will always respond with a ExtensionMsg_Response. |
| 462 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 470 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
| 463 ExtensionHostMsg_Request_Params) | 471 ExtensionHostMsg_Request_Params) |
| 464 | 472 |
| 465 // A renderer sends this message when an extension process starts an API | 473 // A renderer sends this message when an extension process starts an API |
| 466 // request. The browser will always respond with a ExtensionMsg_Response. | 474 // request. The browser will always respond with a ExtensionMsg_Response. |
| 467 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 475 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 // certain conditions. This message is sent in response to several events: | 643 // certain conditions. This message is sent in response to several events: |
| 636 // | 644 // |
| 637 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 645 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
| 638 // * A new page is loaded. This will be sent after | 646 // * A new page is loaded. This will be sent after |
| 639 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 647 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
| 640 // main frame. | 648 // main frame. |
| 641 // * Something changed on an existing frame causing the set of matching searches | 649 // * Something changed on an existing frame causing the set of matching searches |
| 642 // to change. | 650 // to change. |
| 643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 651 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 644 std::vector<std::string> /* Matching CSS selectors */) | 652 std::vector<std::string> /* Matching CSS selectors */) |
| 653 |
| 654 // Sent by the renderer when it has received a Blob handle from the browser. |
| 655 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, |
| 656 std::vector<std::string> /* blob_uuids */) |
| OLD | NEW |