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 |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "components/native_app_window/draggable_region.h" |
13 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
14 #include "content/public/common/socket_permission_request.h" | 15 #include "content/public/common/socket_permission_request.h" |
15 #include "extensions/common/api/messaging/message.h" | 16 #include "extensions/common/api/messaging/message.h" |
16 #include "extensions/common/draggable_region.h" | |
17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
18 #include "extensions/common/extensions_client.h" | 18 #include "extensions/common/extensions_client.h" |
19 #include "extensions/common/permissions/media_galleries_permission_data.h" | 19 #include "extensions/common/permissions/media_galleries_permission_data.h" |
20 #include "extensions/common/permissions/permission_set.h" | 20 #include "extensions/common/permissions/permission_set.h" |
21 #include "extensions/common/permissions/socket_permission_data.h" | 21 #include "extensions/common/permissions/socket_permission_data.h" |
22 #include "extensions/common/permissions/usb_device_permission_data.h" | 22 #include "extensions/common/permissions/usb_device_permission_data.h" |
23 #include "extensions/common/stack_frame.h" | 23 #include "extensions/common/stack_frame.h" |
24 #include "extensions/common/url_pattern.h" | 24 #include "extensions/common/url_pattern.h" |
25 #include "extensions/common/url_pattern_set.h" | 25 #include "extensions/common/url_pattern_set.h" |
26 #include "extensions/common/user_script.h" | 26 #include "extensions/common/user_script.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 IPC_STRUCT_MEMBER(std::string, target_id) | 154 IPC_STRUCT_MEMBER(std::string, target_id) |
155 | 155 |
156 // The ID of the extension that initiated the request. May be empty if it | 156 // The ID of the extension that initiated the request. May be empty if it |
157 // wasn't initiated by an extension. | 157 // wasn't initiated by an extension. |
158 IPC_STRUCT_MEMBER(std::string, source_id) | 158 IPC_STRUCT_MEMBER(std::string, source_id) |
159 | 159 |
160 // The URL of the frame that initiated the request. | 160 // The URL of the frame that initiated the request. |
161 IPC_STRUCT_MEMBER(GURL, source_url) | 161 IPC_STRUCT_MEMBER(GURL, source_url) |
162 IPC_STRUCT_END() | 162 IPC_STRUCT_END() |
163 | 163 |
164 IPC_STRUCT_TRAITS_BEGIN(extensions::DraggableRegion) | 164 IPC_STRUCT_TRAITS_BEGIN(native_app_window::DraggableRegion) |
165 IPC_STRUCT_TRAITS_MEMBER(draggable) | 165 IPC_STRUCT_TRAITS_MEMBER(draggable) |
166 IPC_STRUCT_TRAITS_MEMBER(bounds) | 166 IPC_STRUCT_TRAITS_MEMBER(bounds) |
167 IPC_STRUCT_TRAITS_END() | 167 IPC_STRUCT_TRAITS_END() |
168 | 168 |
169 IPC_STRUCT_TRAITS_BEGIN(content::SocketPermissionRequest) | 169 IPC_STRUCT_TRAITS_BEGIN(content::SocketPermissionRequest) |
170 IPC_STRUCT_TRAITS_MEMBER(type) | 170 IPC_STRUCT_TRAITS_MEMBER(type) |
171 IPC_STRUCT_TRAITS_MEMBER(host) | 171 IPC_STRUCT_TRAITS_MEMBER(host) |
172 IPC_STRUCT_TRAITS_MEMBER(port) | 172 IPC_STRUCT_TRAITS_MEMBER(port) |
173 IPC_STRUCT_TRAITS_END() | 173 IPC_STRUCT_TRAITS_END() |
174 | 174 |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 682 |
683 // Fetches a globally unique ID (for the lifetime of the browser) from the | 683 // Fetches a globally unique ID (for the lifetime of the browser) from the |
684 // browser process. | 684 // browser process. |
685 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 685 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
686 int /* unique_id */) | 686 int /* unique_id */) |
687 | 687 |
688 // Resumes resource requests for a newly created app window. | 688 // Resumes resource requests for a newly created app window. |
689 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 689 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
690 | 690 |
691 // Sent by the renderer when the draggable regions are updated. | 691 // Sent by the renderer when the draggable regions are updated. |
692 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 692 IPC_MESSAGE_ROUTED1( |
693 std::vector<extensions::DraggableRegion> /* regions */) | 693 ExtensionHostMsg_UpdateDraggableRegions, |
| 694 std::vector<native_app_window::DraggableRegion> /* regions */) |
694 | 695 |
695 // Sent by the renderer to log an API action to the extension activity log. | 696 // Sent by the renderer to log an API action to the extension activity log. |
696 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog, | 697 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddAPIActionToActivityLog, |
697 std::string /* extension_id */, | 698 std::string /* extension_id */, |
698 ExtensionHostMsg_APIActionOrEvent_Params) | 699 ExtensionHostMsg_APIActionOrEvent_Params) |
699 | 700 |
700 // Sent by the renderer to log an event to the extension activity log. | 701 // Sent by the renderer to log an event to the extension activity log. |
701 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddEventToActivityLog, | 702 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddEventToActivityLog, |
702 std::string /* extension_id */, | 703 std::string /* extension_id */, |
703 ExtensionHostMsg_APIActionOrEvent_Params) | 704 ExtensionHostMsg_APIActionOrEvent_Params) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 int /* element_instance_id */, | 744 int /* element_instance_id */, |
744 int /* guest_instance_id */, | 745 int /* guest_instance_id */, |
745 base::DictionaryValue /* attach_params */) | 746 base::DictionaryValue /* attach_params */) |
746 | 747 |
747 // Tells the browser to create a mime handler guest view for a plugin. | 748 // Tells the browser to create a mime handler guest view for a plugin. |
748 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest, | 749 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_CreateMimeHandlerViewGuest, |
749 int /* render_frame_id */, | 750 int /* render_frame_id */, |
750 std::string /* embedder_url */, | 751 std::string /* embedder_url */, |
751 std::string /* mime_type */, | 752 std::string /* mime_type */, |
752 int /* element_instance_id */) | 753 int /* element_instance_id */) |
OLD | NEW |