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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Whether the code is JavaScript or CSS. | 107 // Whether the code is JavaScript or CSS. |
108 IPC_STRUCT_MEMBER(bool, is_javascript) | 108 IPC_STRUCT_MEMBER(bool, is_javascript) |
109 | 109 |
110 // String of code to execute. | 110 // String of code to execute. |
111 IPC_STRUCT_MEMBER(std::string, code) | 111 IPC_STRUCT_MEMBER(std::string, code) |
112 | 112 |
113 // Whether to inject into all frames, or only the root frame. | 113 // Whether to inject into all frames, or only the root frame. |
114 IPC_STRUCT_MEMBER(bool, all_frames) | 114 IPC_STRUCT_MEMBER(bool, all_frames) |
115 | 115 |
| 116 // Whether to inject into about:blank (sub)frames. |
| 117 IPC_STRUCT_MEMBER(bool, match_about_blank) |
| 118 |
116 // When to inject the code. | 119 // When to inject the code. |
117 IPC_STRUCT_MEMBER(int, run_at) | 120 IPC_STRUCT_MEMBER(int, run_at) |
118 | 121 |
119 // Whether to execute code in the main world (as opposed to an isolated | 122 // Whether to execute code in the main world (as opposed to an isolated |
120 // world). | 123 // world). |
121 IPC_STRUCT_MEMBER(bool, in_main_world) | 124 IPC_STRUCT_MEMBER(bool, in_main_world) |
122 | 125 |
123 // Whether the request is coming from a <webview>. | 126 // Whether the request is coming from a <webview>. |
124 IPC_STRUCT_MEMBER(bool, is_web_view) | 127 IPC_STRUCT_MEMBER(bool, is_web_view) |
125 | 128 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // certain conditions. This message is sent in response to several events: | 628 // certain conditions. This message is sent in response to several events: |
626 // | 629 // |
627 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 630 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
628 // * A new page is loaded. This will be sent after | 631 // * A new page is loaded. This will be sent after |
629 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 632 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
630 // main frame. | 633 // main frame. |
631 // * Something changed on an existing frame causing the set of matching searches | 634 // * Something changed on an existing frame causing the set of matching searches |
632 // to change. | 635 // to change. |
633 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 636 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
634 std::vector<std::string> /* Matching CSS selectors */) | 637 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |