| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // where we expose APIs to normal web pages using the extension function | 93 // where we expose APIs to normal web pages using the extension function |
| 94 // system. | 94 // system. |
| 95 IPC_STRUCT_MEMBER(std::string, extension_id) | 95 IPC_STRUCT_MEMBER(std::string, extension_id) |
| 96 | 96 |
| 97 // URL of the frame the request was sent from. This isn't necessarily an | 97 // URL of the frame the request was sent from. This isn't necessarily an |
| 98 // extension url. Extension requests can also originate from content scripts, | 98 // extension url. Extension requests can also originate from content scripts, |
| 99 // in which case extension_id will indicate the ID of the associated | 99 // in which case extension_id will indicate the ID of the associated |
| 100 // extension. Or, they can originate from hosted apps or normal web pages. | 100 // extension. Or, they can originate from hosted apps or normal web pages. |
| 101 IPC_STRUCT_MEMBER(GURL, source_url) | 101 IPC_STRUCT_MEMBER(GURL, source_url) |
| 102 | 102 |
| 103 // The id of the tab that sent this request, or -1 if there is no source tab. | |
| 104 IPC_STRUCT_MEMBER(int, source_tab_id) | |
| 105 | |
| 106 // Unique request id to match requests and responses. | 103 // Unique request id to match requests and responses. |
| 107 IPC_STRUCT_MEMBER(int, request_id) | 104 IPC_STRUCT_MEMBER(int, request_id) |
| 108 | 105 |
| 109 // True if request has a callback specified. | 106 // True if request has a callback specified. |
| 110 IPC_STRUCT_MEMBER(bool, has_callback) | 107 IPC_STRUCT_MEMBER(bool, has_callback) |
| 111 | 108 |
| 112 // True if request is executed in response to an explicit user gesture. | 109 // True if request is executed in response to an explicit user gesture. |
| 113 IPC_STRUCT_MEMBER(bool, user_gesture) | 110 IPC_STRUCT_MEMBER(bool, user_gesture) |
| 114 | 111 |
| 115 // If this API call is for a service worker, then this is the worker thread | 112 // If this API call is for a service worker, then this is the worker thread |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 int64_t /* service_worker_version_id */, | 923 int64_t /* service_worker_version_id */, |
| 927 std::string /* request_uuid */) | 924 std::string /* request_uuid */) |
| 928 | 925 |
| 929 // Asks the browser to decrement the pending activity count for | 926 // Asks the browser to decrement the pending activity count for |
| 930 // the worker with version id |service_worker_version_id|. | 927 // the worker with version id |service_worker_version_id|. |
| 931 // |request_uuid| must match the GUID of a previous request, otherwise the | 928 // |request_uuid| must match the GUID of a previous request, otherwise the |
| 932 // browser process ignores the IPC. | 929 // browser process ignores the IPC. |
| 933 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, | 930 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_DecrementServiceWorkerActivity, |
| 934 int64_t /* service_worker_version_id */, | 931 int64_t /* service_worker_version_id */, |
| 935 std::string /* request_uuid */) | 932 std::string /* request_uuid */) |
| OLD | NEW |