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 "content/public/common/common_param_traits.h" | 13 #include "content/public/common/common_param_traits.h" |
14 #include "content/public/common/socket_permission_request.h" | 14 #include "content/public/common/socket_permission_request.h" |
15 #include "extensions/common/api/messaging/message.h" | 15 #include "extensions/common/api/messaging/message.h" |
16 #include "extensions/common/draggable_region.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/url_pattern.h" | 23 #include "extensions/common/url_pattern.h" |
24 #include "extensions/common/url_pattern_set.h" | 24 #include "extensions/common/url_pattern_set.h" |
25 #include "extensions/common/view_type.h" | 25 #include "extensions/common/view_type.h" |
26 #include "ipc/ipc_message_macros.h" | 26 #include "ipc/ipc_message_macros.h" |
| 27 #include "ui/gfx/ipc/gfx_param_traits.h" |
27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
28 | 29 |
29 #define IPC_MESSAGE_START ExtensionMsgStart | 30 #define IPC_MESSAGE_START ExtensionMsgStart |
30 | 31 |
31 IPC_ENUM_TRAITS_MAX_VALUE(extensions::ViewType, extensions::VIEW_TYPE_LAST) | 32 IPC_ENUM_TRAITS_MAX_VALUE(extensions::ViewType, extensions::VIEW_TYPE_LAST) |
32 IPC_ENUM_TRAITS_MAX_VALUE(content::SocketPermissionRequest::OperationType, | 33 IPC_ENUM_TRAITS_MAX_VALUE(content::SocketPermissionRequest::OperationType, |
33 content::SocketPermissionRequest::OPERATION_TYPE_LAST) | 34 content::SocketPermissionRequest::OPERATION_TYPE_LAST) |
34 | 35 |
35 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and | 36 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and |
36 // ExtensionHostMsg_AddEventToActivityLog. | 37 // ExtensionHostMsg_AddEventToActivityLog. |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 660 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
660 // main frame. | 661 // main frame. |
661 // * Something changed on an existing frame causing the set of matching searches | 662 // * Something changed on an existing frame causing the set of matching searches |
662 // to change. | 663 // to change. |
663 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 664 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
664 std::vector<std::string> /* Matching CSS selectors */) | 665 std::vector<std::string> /* Matching CSS selectors */) |
665 | 666 |
666 // Sent by the renderer when it has received a Blob handle from the browser. | 667 // Sent by the renderer when it has received a Blob handle from the browser. |
667 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, | 668 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, |
668 std::vector<std::string> /* blob_uuids */) | 669 std::vector<std::string> /* blob_uuids */) |
OLD | NEW |