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