| 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Flash permission prompt. | 53 // Flash permission prompt. |
| 54 kFlashHiddenPreferHtml, | 54 kFlashHiddenPreferHtml, |
| 55 kNotFound, | 55 kNotFound, |
| 56 kOutdatedBlocked, | 56 kOutdatedBlocked, |
| 57 kOutdatedDisallowed, | 57 kOutdatedDisallowed, |
| 58 kPlayImportantContent, | 58 kPlayImportantContent, |
| 59 kRestartRequired, | 59 kRestartRequired, |
| 60 kUnauthorized, | 60 kUnauthorized, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 namespace IPC { | |
| 64 | |
| 65 template <> | |
| 66 struct ParamTraits<ContentSettingsPattern> { | |
| 67 typedef ContentSettingsPattern param_type; | |
| 68 static void GetSize(base::PickleSizer* s, const param_type& p); | |
| 69 static void Write(base::Pickle* m, const param_type& p); | |
| 70 static bool Read(const base::Pickle* m, | |
| 71 base::PickleIterator* iter, | |
| 72 param_type* r); | |
| 73 static void Log(const param_type& p, std::string* l); | |
| 74 }; | |
| 75 | |
| 76 } // namespace IPC | |
| 77 | |
| 78 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 63 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| 79 | 64 |
| 80 #define IPC_MESSAGE_START ChromeMsgStart | 65 #define IPC_MESSAGE_START ChromeMsgStart |
| 81 | 66 |
| 82 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, | 67 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status, |
| 83 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) | 68 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) |
| 84 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, | 69 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageAlignment, |
| 85 THEME_BKGRND_IMAGE_ALIGN_LAST) | 70 THEME_BKGRND_IMAGE_ALIGN_LAST) |
| 86 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) | 71 IPC_ENUM_TRAITS_MAX_VALUE(ThemeBackgroundImageTiling, THEME_BKGRND_IMAGE_LAST) |
| 87 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, | 72 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebConsoleMessage::Level, |
| 88 blink::WebConsoleMessage::LevelLast) | 73 blink::WebConsoleMessage::LevelLast) |
| 89 IPC_ENUM_TRAITS_MAX_VALUE(content::BrowserControlsState, | 74 IPC_ENUM_TRAITS_MAX_VALUE(content::BrowserControlsState, |
| 90 content::BROWSER_CONTROLS_STATE_LAST) | 75 content::BROWSER_CONTROLS_STATE_LAST) |
| 91 | 76 |
| 92 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 77 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
| 93 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 78 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
| 94 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) | 79 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
| 95 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) | 80 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
| 96 IPC_STRUCT_MEMBER(std::string, actual_mime_type) | 81 IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
| 97 IPC_STRUCT_MEMBER(std::string, group_identifier) | 82 IPC_STRUCT_MEMBER(std::string, group_identifier) |
| 98 IPC_STRUCT_MEMBER(base::string16, group_name) | 83 IPC_STRUCT_MEMBER(base::string16, group_name) |
| 99 IPC_STRUCT_END() | 84 IPC_STRUCT_END() |
| 100 | 85 |
| 101 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) | |
| 102 IPC_STRUCT_TRAITS_MEMBER(scheme) | |
| 103 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) | |
| 104 IPC_STRUCT_TRAITS_MEMBER(host) | |
| 105 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) | |
| 106 IPC_STRUCT_TRAITS_MEMBER(port) | |
| 107 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) | |
| 108 IPC_STRUCT_TRAITS_MEMBER(path) | |
| 109 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard) | |
| 110 IPC_STRUCT_TRAITS_END() | |
| 111 | |
| 112 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) | |
| 113 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) | |
| 114 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) | |
| 115 IPC_STRUCT_TRAITS_MEMBER(setting) | |
| 116 IPC_STRUCT_TRAITS_MEMBER(source) | |
| 117 IPC_STRUCT_TRAITS_MEMBER(incognito) | |
| 118 IPC_STRUCT_TRAITS_END() | |
| 119 | |
| 120 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) | |
| 121 IPC_STRUCT_TRAITS_MEMBER(image_rules) | |
| 122 IPC_STRUCT_TRAITS_MEMBER(script_rules) | |
| 123 IPC_STRUCT_TRAITS_MEMBER(autoplay_rules) | |
| 124 IPC_STRUCT_TRAITS_END() | |
| 125 | |
| 126 IPC_STRUCT_TRAITS_BEGIN(RGBAColor) | 86 IPC_STRUCT_TRAITS_BEGIN(RGBAColor) |
| 127 IPC_STRUCT_TRAITS_MEMBER(r) | 87 IPC_STRUCT_TRAITS_MEMBER(r) |
| 128 IPC_STRUCT_TRAITS_MEMBER(g) | 88 IPC_STRUCT_TRAITS_MEMBER(g) |
| 129 IPC_STRUCT_TRAITS_MEMBER(b) | 89 IPC_STRUCT_TRAITS_MEMBER(b) |
| 130 IPC_STRUCT_TRAITS_MEMBER(a) | 90 IPC_STRUCT_TRAITS_MEMBER(a) |
| 131 IPC_STRUCT_TRAITS_END() | 91 IPC_STRUCT_TRAITS_END() |
| 132 | 92 |
| 133 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable, | 93 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable, |
| 134 WebApplicationInfo::MOBILE_CAPABLE_APPLE) | 94 WebApplicationInfo::MOBILE_CAPABLE_APPLE) |
| 135 | 95 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 153 // These are messages sent from the browser to the renderer process. | 113 // These are messages sent from the browser to the renderer process. |
| 154 | 114 |
| 155 #if !defined(OS_ANDROID) | 115 #if !defined(OS_ANDROID) |
| 156 // For WebUI testing, this message requests JavaScript to be executed at a time | 116 // For WebUI testing, this message requests JavaScript to be executed at a time |
| 157 // which is late enough to not be thrown out, and early enough to be before | 117 // which is late enough to not be thrown out, and early enough to be before |
| 158 // onload events are fired. | 118 // onload events are fired. |
| 159 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, | 119 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, |
| 160 base::string16 /* javascript */) | 120 base::string16 /* javascript */) |
| 161 #endif | 121 #endif |
| 162 | 122 |
| 163 // Set the content setting rules stored by the renderer. | |
| 164 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, | |
| 165 RendererContentSettingRules /* rules */) | |
| 166 | |
| 167 // Tells the render frame to load all blocked plugins with the given identifier. | 123 // Tells the render frame to load all blocked plugins with the given identifier. |
| 168 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, | 124 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, |
| 169 std::string /* identifier */) | 125 std::string /* identifier */) |
| 170 | 126 |
| 171 // Tells the renderer to create a FieldTrial, and by using a 100% probability | 127 // Tells the renderer to create a FieldTrial, and by using a 100% probability |
| 172 // for the FieldTrial, forces the FieldTrial to have assigned group name. | 128 // for the FieldTrial, forces the FieldTrial to have assigned group name. |
| 173 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, | 129 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
| 174 std::string /* field trial name */, | 130 std::string /* field trial name */, |
| 175 std::string /* group name that was assigned. */) | 131 std::string /* group name that was assigned. */) |
| 176 | 132 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // process so that they can be assigned to an Instant renderer. | 400 // process so that they can be assigned to an Instant renderer. |
| 445 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 401 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 446 std::vector<GURL> /* search_urls */, | 402 std::vector<GURL> /* search_urls */, |
| 447 GURL /* new_tab_page_url */) | 403 GURL /* new_tab_page_url */) |
| 448 | 404 |
| 449 #if BUILDFLAG(ENABLE_PLUGINS) | 405 #if BUILDFLAG(ENABLE_PLUGINS) |
| 450 // Sent by the renderer to check if crash reporting is enabled. | 406 // Sent by the renderer to check if crash reporting is enabled. |
| 451 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 407 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 452 bool /* enabled */) | 408 bool /* enabled */) |
| 453 #endif | 409 #endif |
| OLD | NEW |