| 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/extension.h" | |
| 15 #include "chrome/common/extensions/permissions/bluetooth_permission_data.h" | 14 #include "chrome/common/extensions/permissions/bluetooth_permission_data.h" |
| 16 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h
" | 15 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h
" |
| 17 #include "chrome/common/extensions/permissions/socket_permission_data.h" | 16 #include "chrome/common/extensions/permissions/socket_permission_data.h" |
| 18 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" | 17 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" |
| 19 #include "chrome/common/web_application_info.h" | 18 #include "chrome/common/web_application_info.h" |
| 20 #include "content/public/common/common_param_traits.h" | 19 #include "content/public/common/common_param_traits.h" |
| 21 #include "content/public/common/socket_permission_request.h" | 20 #include "content/public/common/socket_permission_request.h" |
| 22 #include "extensions/common/draggable_region.h" | 21 #include "extensions/common/draggable_region.h" |
| 22 #include "extensions/common/extension.h" |
| 23 #include "extensions/common/extensions_client.h" | 23 #include "extensions/common/extensions_client.h" |
| 24 #include "extensions/common/permissions/permission_set.h" | 24 #include "extensions/common/permissions/permission_set.h" |
| 25 #include "extensions/common/url_pattern.h" | 25 #include "extensions/common/url_pattern.h" |
| 26 #include "extensions/common/url_pattern_set.h" | 26 #include "extensions/common/url_pattern_set.h" |
| 27 #include "extensions/common/view_type.h" | 27 #include "extensions/common/view_type.h" |
| 28 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
| 29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 30 | 30 |
| 31 #define IPC_MESSAGE_START ExtensionMsgStart | 31 #define IPC_MESSAGE_START ExtensionMsgStart |
| 32 | 32 |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 // Notifies the browser process that a tab has started or stopped matching | 670 // Notifies the browser process that a tab has started or stopped matching |
| 671 // certain conditions. This message is sent in response to several events: | 671 // certain conditions. This message is sent in response to several events: |
| 672 // | 672 // |
| 673 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 673 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
| 674 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 674 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
| 675 // Currently this only fires for the main frame. | 675 // Currently this only fires for the main frame. |
| 676 // * Something changed on an existing frame causing the set of matching searches | 676 // * Something changed on an existing frame causing the set of matching searches |
| 677 // to change. | 677 // to change. |
| 678 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 678 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 679 std::vector<std::string> /* Matching CSS selectors */) | 679 std::vector<std::string> /* Matching CSS selectors */) |
| OLD | NEW |