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 |
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 "chrome/common/extensions/api/messaging/message.h" | 13 #include "chrome/common/extensions/api/messaging/message.h" |
14 #include "chrome/common/extensions/permissions/bluetooth_permission_data.h" | |
15 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h
" | 14 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h
" |
16 #include "chrome/common/extensions/permissions/socket_permission_data.h" | 15 #include "chrome/common/extensions/permissions/socket_permission_data.h" |
17 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" | 16 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" |
18 #include "chrome/common/web_application_info.h" | 17 #include "chrome/common/web_application_info.h" |
19 #include "content/public/common/common_param_traits.h" | 18 #include "content/public/common/common_param_traits.h" |
20 #include "content/public/common/socket_permission_request.h" | 19 #include "content/public/common/socket_permission_request.h" |
21 #include "extensions/common/draggable_region.h" | 20 #include "extensions/common/draggable_region.h" |
22 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
23 #include "extensions/common/extensions_client.h" | 22 #include "extensions/common/extensions_client.h" |
24 #include "extensions/common/permissions/permission_set.h" | 23 #include "extensions/common/permissions/permission_set.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 193 |
195 IPC_STRUCT_TRAITS_BEGIN(extensions::UsbDevicePermissionData) | 194 IPC_STRUCT_TRAITS_BEGIN(extensions::UsbDevicePermissionData) |
196 IPC_STRUCT_TRAITS_MEMBER(vendor_id()) | 195 IPC_STRUCT_TRAITS_MEMBER(vendor_id()) |
197 IPC_STRUCT_TRAITS_MEMBER(product_id()) | 196 IPC_STRUCT_TRAITS_MEMBER(product_id()) |
198 IPC_STRUCT_TRAITS_END() | 197 IPC_STRUCT_TRAITS_END() |
199 | 198 |
200 IPC_STRUCT_TRAITS_BEGIN(extensions::MediaGalleriesPermissionData) | 199 IPC_STRUCT_TRAITS_BEGIN(extensions::MediaGalleriesPermissionData) |
201 IPC_STRUCT_TRAITS_MEMBER(permission()) | 200 IPC_STRUCT_TRAITS_MEMBER(permission()) |
202 IPC_STRUCT_TRAITS_END() | 201 IPC_STRUCT_TRAITS_END() |
203 | 202 |
204 IPC_STRUCT_TRAITS_BEGIN(extensions::BluetoothPermissionData) | |
205 IPC_STRUCT_TRAITS_MEMBER(uuid()) | |
206 IPC_STRUCT_TRAITS_END() | |
207 | |
208 IPC_STRUCT_TRAITS_BEGIN(extensions::Message) | 203 IPC_STRUCT_TRAITS_BEGIN(extensions::Message) |
209 IPC_STRUCT_TRAITS_MEMBER(data) | 204 IPC_STRUCT_TRAITS_MEMBER(data) |
210 IPC_STRUCT_TRAITS_MEMBER(user_gesture) | 205 IPC_STRUCT_TRAITS_MEMBER(user_gesture) |
211 IPC_STRUCT_TRAITS_END() | 206 IPC_STRUCT_TRAITS_END() |
212 | 207 |
213 // Singly-included section for custom IPC traits. | 208 // Singly-included section for custom IPC traits. |
214 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 209 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
215 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 210 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
216 | 211 |
217 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 212 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 // Notifies the browser process that a tab has started or stopped matching | 665 // Notifies the browser process that a tab has started or stopped matching |
671 // certain conditions. This message is sent in response to several events: | 666 // certain conditions. This message is sent in response to several events: |
672 // | 667 // |
673 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 668 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
674 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 669 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
675 // Currently this only fires for the main frame. | 670 // Currently this only fires for the main frame. |
676 // * Something changed on an existing frame causing the set of matching searches | 671 // * Something changed on an existing frame causing the set of matching searches |
677 // to change. | 672 // to change. |
678 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 673 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
679 std::vector<std::string> /* Matching CSS selectors */) | 674 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |