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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 // The browser sends this message in response to all extension api calls. The | 284 // The browser sends this message in response to all extension api calls. The |
285 // response data (if any) is one of the base::Value subclasses, wrapped as the | 285 // response data (if any) is one of the base::Value subclasses, wrapped as the |
286 // first element in a ListValue. | 286 // first element in a ListValue. |
287 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, | 287 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, |
288 int /* request_id */, | 288 int /* request_id */, |
289 bool /* success */, | 289 bool /* success */, |
290 ListValue /* response wrapper (see comment above) */, | 290 ListValue /* response wrapper (see comment above) */, |
291 std::string /* error */) | 291 std::string /* error */) |
292 | 292 |
293 // This message is optionally routed. If used as a control message, it | 293 // This message is optionally routed. If used as a control message, it will |
294 // will call a javascript function in every registered context in the | 294 // call a javascript function |function_name| from module |module_name| in |
295 // target process. If routed, it will be restricted to the contexts that | 295 // every registered context in the target process. If routed, it will be |
296 // are part of the target RenderView. | 296 // restricted to the contexts that are part of the target RenderView. |
| 297 // |
297 // If |extension_id| is non-empty, the function will be invoked only in | 298 // If |extension_id| is non-empty, the function will be invoked only in |
298 // contexts owned by the extension. |args| is a list of primitive Value types | 299 // contexts owned by the extension. |args| is a list of primitive Value types |
299 // that are passed to the function. | 300 // that are passed to the function. |
300 IPC_MESSAGE_ROUTED4(ExtensionMsg_MessageInvoke, | 301 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke, |
301 std::string /* extension_id */, | 302 std::string /* extension_id */, |
| 303 std::string /* module_name */, |
302 std::string /* function_name */, | 304 std::string /* function_name */, |
303 ListValue /* args */, | 305 ListValue /* args */, |
304 bool /* delivered as part of a user gesture */) | 306 bool /* delivered as part of a user gesture */) |
305 | 307 |
306 // Tell the renderer process all known extension function names. | 308 // Tell the renderer process all known extension function names. |
307 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames, | 309 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames, |
308 std::vector<std::string>) | 310 std::vector<std::string>) |
309 | 311 |
310 // Marks an extension as 'active' in an extension process. 'Active' extensions | 312 // Marks an extension as 'active' in an extension process. 'Active' extensions |
311 // have more privileges than other extension content that might end up running | 313 // have more privileges than other extension content that might end up running |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 // Notifies the browser process that a tab has started or stopped matching | 637 // Notifies the browser process that a tab has started or stopped matching |
636 // certain conditions. This message is sent in response to several events: | 638 // certain conditions. This message is sent in response to several events: |
637 // | 639 // |
638 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 640 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
639 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 641 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
640 // Currently this only fires for the main frame. | 642 // Currently this only fires for the main frame. |
641 // * Something changed on an existing frame causing the set of matching searches | 643 // * Something changed on an existing frame causing the set of matching searches |
642 // to change. | 644 // to change. |
643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 645 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
644 std::vector<std::string> /* Matching CSS selectors */) | 646 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |