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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // where we expose APIs to normal web pages using the extension function | 77 // where we expose APIs to normal web pages using the extension function |
78 // system. | 78 // system. |
79 IPC_STRUCT_MEMBER(std::string, extension_id) | 79 IPC_STRUCT_MEMBER(std::string, extension_id) |
80 | 80 |
81 // URL of the frame the request was sent from. This isn't necessarily an | 81 // URL of the frame the request was sent from. This isn't necessarily an |
82 // extension url. Extension requests can also originate from content scripts, | 82 // extension url. Extension requests can also originate from content scripts, |
83 // in which case extension_id will indicate the ID of the associated | 83 // in which case extension_id will indicate the ID of the associated |
84 // extension. Or, they can originate from hosted apps or normal web pages. | 84 // extension. Or, they can originate from hosted apps or normal web pages. |
85 IPC_STRUCT_MEMBER(GURL, source_url) | 85 IPC_STRUCT_MEMBER(GURL, source_url) |
86 | 86 |
| 87 // The id of the tab that sent this request, or -1 if there is no source tab. |
| 88 IPC_STRUCT_MEMBER(int, source_tab_id) |
| 89 |
87 // Unique request id to match requests and responses. | 90 // Unique request id to match requests and responses. |
88 IPC_STRUCT_MEMBER(int, request_id) | 91 IPC_STRUCT_MEMBER(int, request_id) |
89 | 92 |
90 // True if request has a callback specified. | 93 // True if request has a callback specified. |
91 IPC_STRUCT_MEMBER(bool, has_callback) | 94 IPC_STRUCT_MEMBER(bool, has_callback) |
92 | 95 |
93 // True if request is executed in response to an explicit user gesture. | 96 // True if request is executed in response to an explicit user gesture. |
94 IPC_STRUCT_MEMBER(bool, user_gesture) | 97 IPC_STRUCT_MEMBER(bool, user_gesture) |
95 IPC_STRUCT_END() | 98 IPC_STRUCT_END() |
96 | 99 |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // Notifies the browser process that a tab has started or stopped matching | 670 // Notifies the browser process that a tab has started or stopped matching |
668 // certain conditions. This message is sent in response to several events: | 671 // certain conditions. This message is sent in response to several events: |
669 // | 672 // |
670 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 673 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
671 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 674 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
672 // Currently this only fires for the main frame. | 675 // Currently this only fires for the main frame. |
673 // * Something changed on an existing frame causing the set of matching searches | 676 // * Something changed on an existing frame causing the set of matching searches |
674 // to change. | 677 // to change. |
675 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 678 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
676 std::vector<std::string> /* Matching CSS selectors */) | 679 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |