| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // When to inject the code. | 111 // When to inject the code. |
| 112 IPC_STRUCT_MEMBER(int, run_at) | 112 IPC_STRUCT_MEMBER(int, run_at) |
| 113 | 113 |
| 114 // Whether to execute code in the main world (as opposed to an isolated | 114 // Whether to execute code in the main world (as opposed to an isolated |
| 115 // world). | 115 // world). |
| 116 IPC_STRUCT_MEMBER(bool, in_main_world) | 116 IPC_STRUCT_MEMBER(bool, in_main_world) |
| 117 | 117 |
| 118 // Whether the request is coming from a <webview>. | 118 // Whether the request is coming from a <webview>. |
| 119 IPC_STRUCT_MEMBER(bool, is_web_view) | 119 IPC_STRUCT_MEMBER(bool, is_web_view) |
| 120 |
| 121 // Whether the caller is interested in the result value. Manifest-declared |
| 122 // content scripts and executeScript() calls without a response callback |
| 123 // are examples of when this will be false. |
| 124 IPC_STRUCT_MEMBER(bool, wants_result) |
| 120 IPC_STRUCT_END() | 125 IPC_STRUCT_END() |
| 121 | 126 |
| 122 // Struct containing the data for external connections to extensions. Used to | 127 // Struct containing the data for external connections to extensions. Used to |
| 123 // handle the IPCs initiated by both connect() and onConnect(). | 128 // handle the IPCs initiated by both connect() and onConnect(). |
| 124 IPC_STRUCT_BEGIN(ExtensionMsg_ExternalConnectionInfo) | 129 IPC_STRUCT_BEGIN(ExtensionMsg_ExternalConnectionInfo) |
| 125 // The ID of the extension that is the target of the request. | 130 // The ID of the extension that is the target of the request. |
| 126 IPC_STRUCT_MEMBER(std::string, target_id) | 131 IPC_STRUCT_MEMBER(std::string, target_id) |
| 127 | 132 |
| 128 // The ID of the extension that initiated the request. May be empty if it | 133 // The ID of the extension that initiated the request. May be empty if it |
| 129 // wasn't initiated by an extension. | 134 // wasn't initiated by an extension. |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 // Notifies the browser process that a tab has started or stopped matching | 639 // Notifies the browser process that a tab has started or stopped matching |
| 635 // certain conditions. This message is sent in response to several events: | 640 // certain conditions. This message is sent in response to several events: |
| 636 // | 641 // |
| 637 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 642 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
| 638 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 643 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
| 639 // Currently this only fires for the main frame. | 644 // Currently this only fires for the main frame. |
| 640 // * Something changed on an existing frame causing the set of matching searches | 645 // * Something changed on an existing frame causing the set of matching searches |
| 641 // to change. | 646 // to change. |
| 642 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 647 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 643 std::vector<std::string> /* Matching CSS selectors */) | 648 std::vector<std::string> /* Matching CSS selectors */) |
| OLD | NEW |