| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 } // namespace IPC | 290 } // namespace IPC |
| 291 | 291 |
| 292 #endif // EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ | 292 #endif // EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ |
| 293 | 293 |
| 294 // Messages sent from the browser to the renderer. | 294 // Messages sent from the browser to the renderer. |
| 295 | 295 |
| 296 // The browser sends this message in response to all extension api calls. The | 296 // The browser sends this message in response to all extension api calls. The |
| 297 // response data (if any) is one of the base::Value subclasses, wrapped as the | 297 // response data (if any) is one of the base::Value subclasses, wrapped as the |
| 298 // first element in a ListValue. | 298 // first element in a ListValue. |
| 299 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, | 299 IPC_MESSAGE_ROUTED5(ExtensionMsg_Response, |
| 300 int /* request_id */, | 300 int /* request_id */, |
| 301 bool /* success */, | 301 bool /* success */, |
| 302 base::ListValue /* response wrapper (see comment above) */, | 302 base::ListValue /* response wrapper (see comment above) */, |
| 303 std::string /* error */) | 303 std::string /* error */, |
| 304 bool /* whether the response callback has user gesture */) |
| 304 | 305 |
| 305 // This message is optionally routed. If used as a control message, it will | 306 // This message is optionally routed. If used as a control message, it will |
| 306 // call a javascript function |function_name| from module |module_name| in | 307 // call a javascript function |function_name| from module |module_name| in |
| 307 // every registered context in the target process. If routed, it will be | 308 // every registered context in the target process. If routed, it will be |
| 308 // restricted to the contexts that are part of the target RenderView. | 309 // restricted to the contexts that are part of the target RenderView. |
| 309 // | 310 // |
| 310 // If |extension_id| is non-empty, the function will be invoked only in | 311 // If |extension_id| is non-empty, the function will be invoked only in |
| 311 // contexts owned by the extension. |args| is a list of primitive Value types | 312 // contexts owned by the extension. |args| is a list of primitive Value types |
| 312 // that are passed to the function. | 313 // that are passed to the function. |
| 313 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke, | 314 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke, |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 // certain conditions. This message is sent in response to several events: | 626 // certain conditions. This message is sent in response to several events: |
| 626 // | 627 // |
| 627 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 628 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
| 628 // * A new page is loaded. This will be sent after | 629 // * A new page is loaded. This will be sent after |
| 629 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 630 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
| 630 // main frame. | 631 // main frame. |
| 631 // * Something changed on an existing frame causing the set of matching searches | 632 // * Something changed on an existing frame causing the set of matching searches |
| 632 // to change. | 633 // to change. |
| 633 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 634 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 634 std::vector<std::string> /* Matching CSS selectors */) | 635 std::vector<std::string> /* Matching CSS selectors */) |
| OLD | NEW |