| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 6 #define CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 7 |
| 5 // IPC messages for interacting with frames. | 8 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | |
| 7 | 9 |
| 8 #include <stddef.h> | 10 #include <stddef.h> |
| 9 #include <stdint.h> | 11 #include <stdint.h> |
| 10 | 12 |
| 11 #include <map> | 13 #include <map> |
| 12 #include <set> | 14 #include <set> |
| 13 #include <string> | 15 #include <string> |
| 14 #include <vector> | 16 #include <vector> |
| 15 | 17 |
| 16 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 67 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
| 66 #include "ui/gfx/range/range.h" | 68 #include "ui/gfx/range/range.h" |
| 67 #include "url/gurl.h" | 69 #include "url/gurl.h" |
| 68 #include "url/origin.h" | 70 #include "url/origin.h" |
| 69 | 71 |
| 70 #if BUILDFLAG(ENABLE_PLUGINS) | 72 #if BUILDFLAG(ENABLE_PLUGINS) |
| 71 #include "content/common/pepper_renderer_instance_data.h" | 73 #include "content/common/pepper_renderer_instance_data.h" |
| 72 #endif | 74 #endif |
| 73 | 75 |
| 74 // Singly-included section for type definitions. | 76 // Singly-included section for type definitions. |
| 75 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ | 77 #ifndef INTERNAL_CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 76 #define CONTENT_COMMON_FRAME_MESSAGES_H_ | 78 #define INTERNAL_CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 77 | 79 |
| 78 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap = | 80 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap = |
| 79 std::map<GURL, base::FilePath>; | 81 std::map<GURL, base::FilePath>; |
| 80 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap = | 82 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap = |
| 81 std::map<int, base::FilePath>; | 83 std::map<int, base::FilePath>; |
| 82 | 84 |
| 83 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = | 85 using FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap = |
| 84 std::map<int, std::string>; | 86 std::map<int, std::string>; |
| 85 | 87 |
| 86 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ | 88 #endif // INTERNAL_CONTENT_COMMON_FRAME_MESSAGES_H_ |
| 87 | 89 |
| 88 #undef IPC_MESSAGE_EXPORT | 90 #undef IPC_MESSAGE_EXPORT |
| 89 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 91 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 90 | 92 |
| 91 #define IPC_MESSAGE_START FrameMsgStart | 93 #define IPC_MESSAGE_START FrameMsgStart |
| 92 | 94 |
| 93 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptDialogType, | 95 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptDialogType, |
| 94 content::JAVASCRIPT_DIALOG_TYPE_ALERT, | 96 content::JAVASCRIPT_DIALOG_TYPE_ALERT, |
| 95 content::JAVASCRIPT_DIALOG_TYPE_PROMPT) | 97 content::JAVASCRIPT_DIALOG_TYPE_PROMPT) |
| 96 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 98 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1710 int /* nfr_request_id */, | 1712 int /* nfr_request_id */, |
| 1711 float /* distance */) | 1713 float /* distance */) |
| 1712 | 1714 |
| 1713 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1715 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
| 1714 #endif | 1716 #endif |
| 1715 | 1717 |
| 1716 // Adding a new message? Stick to the sort order above: first platform | 1718 // Adding a new message? Stick to the sort order above: first platform |
| 1717 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1719 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1718 // platform independent FrameHostMsg, then ifdefs for platform specific | 1720 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1719 // FrameHostMsg. | 1721 // FrameHostMsg. |
| 1722 |
| 1723 #endif // CONTENT_COMMON_FRAME_MESSAGES_H_ |
| OLD | NEW |