OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 IPC_STRUCT_MEMBER(ListValue, arguments) | 26 IPC_STRUCT_MEMBER(ListValue, arguments) |
27 | 27 |
28 // Extension ID this request was sent from. This can be empty, in the case | 28 // Extension ID this request was sent from. This can be empty, in the case |
29 // where we expose APIs to normal web pages using the extension function | 29 // where we expose APIs to normal web pages using the extension function |
30 // system. | 30 // system. |
31 IPC_STRUCT_MEMBER(std::string, extension_id) | 31 IPC_STRUCT_MEMBER(std::string, extension_id) |
32 | 32 |
33 // URL of the frame the request was sent from. This isn't necessarily an | 33 // URL of the frame the request was sent from. This isn't necessarily an |
34 // extension url. Extension requests can also originate from content scripts, | 34 // extension url. Extension requests can also originate from content scripts, |
35 // in which case extension_id will indicate the ID of the associated | 35 // in which case extension_id will indicate the ID of the associated |
36 // extension. Or, they can origiante from hosted apps or normal web pages. | 36 // extension. Or, they can originate from hosted apps or normal web pages. |
37 IPC_STRUCT_MEMBER(GURL, source_url) | 37 IPC_STRUCT_MEMBER(GURL, source_url) |
38 | 38 |
| 39 // Web security origin of the frame the request was sent from. |
| 40 IPC_STRUCT_MEMBER(string16, origin) |
| 41 |
39 // Unique request id to match requests and responses. | 42 // Unique request id to match requests and responses. |
40 IPC_STRUCT_MEMBER(int, request_id) | 43 IPC_STRUCT_MEMBER(int, request_id) |
41 | 44 |
42 // True if request has a callback specified. | 45 // True if request has a callback specified. |
43 IPC_STRUCT_MEMBER(bool, has_callback) | 46 IPC_STRUCT_MEMBER(bool, has_callback) |
44 | 47 |
45 // True if request is executed in response to an explicit user gesture. | 48 // True if request is executed in response to an explicit user gesture. |
46 IPC_STRUCT_MEMBER(bool, user_gesture) | 49 IPC_STRUCT_MEMBER(bool, user_gesture) |
47 IPC_STRUCT_END() | 50 IPC_STRUCT_END() |
48 | 51 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // Response to the renderer for the above message. | 367 // Response to the renderer for the above message. |
365 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 368 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
366 std::string /* channel_id */, | 369 std::string /* channel_id */, |
367 std::string /* error */, | 370 std::string /* error */, |
368 int32 /* callback_id */) | 371 int32 /* callback_id */) |
369 | 372 |
370 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 373 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
371 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 374 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
372 int /* target_port_id */, | 375 int /* target_port_id */, |
373 std::string /* message */) | 376 std::string /* message */) |
OLD | NEW |