| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 namespace webkit_glue { | 55 namespace webkit_glue { |
| 56 struct FormData; | 56 struct FormData; |
| 57 class FormField; | 57 class FormField; |
| 58 struct PasswordFormFillData; | 58 struct PasswordFormFillData; |
| 59 struct ResourceDevToolsInfo; | 59 struct ResourceDevToolsInfo; |
| 60 struct ResourceLoadTimingInfo; | 60 struct ResourceLoadTimingInfo; |
| 61 struct ResourceResponseInfo; | 61 struct ResourceResponseInfo; |
| 62 struct WebAccessibility; | 62 struct WebAccessibility; |
| 63 struct WebCookie; | 63 struct WebCookie; |
| 64 struct WebPluginGeometry; |
| 64 struct WebAccessibility; | 65 struct WebAccessibility; |
| 65 } | 66 } |
| 66 | 67 |
| 67 namespace webkit { | |
| 68 namespace npapi { | |
| 69 struct WebPluginGeometry; | |
| 70 struct WebPluginInfo; | |
| 71 struct WebPluginMimeType; | |
| 72 } | |
| 73 } | |
| 74 | |
| 75 struct AudioBuffersState; | 68 struct AudioBuffersState; |
| 76 class ExtensionExtent; | 69 class ExtensionExtent; |
| 77 class GURL; | 70 class GURL; |
| 78 class SkBitmap; | 71 class SkBitmap; |
| 79 class URLPattern; | 72 class URLPattern; |
| 80 struct ContextMenuParams; | 73 struct ContextMenuParams; |
| 81 struct EditCommand; | 74 struct EditCommand; |
| 82 struct ResourceResponseHead; | 75 struct ResourceResponseHead; |
| 83 struct SyncLoadResult; | 76 struct SyncLoadResult; |
| 84 struct RendererPreferences; | 77 struct RendererPreferences; |
| 85 struct WebDropData; | 78 struct WebDropData; |
| 86 struct WebMenuItem; | 79 struct WebMenuItem; |
| 80 struct WebPluginInfo; |
| 81 struct WebPluginMimeType; |
| 87 struct WebPreferences; | 82 struct WebPreferences; |
| 88 | 83 |
| 89 // Forward declarations of structures used to store data for when we have a lot | 84 // Forward declarations of structures used to store data for when we have a lot |
| 90 // of parameters. | 85 // of parameters. |
| 91 struct ViewMsg_Navigate_Params; | 86 struct ViewMsg_Navigate_Params; |
| 92 struct ViewMsg_AudioStreamState_Params; | 87 struct ViewMsg_AudioStreamState_Params; |
| 93 struct ViewMsg_StopFinding_Params; | 88 struct ViewMsg_StopFinding_Params; |
| 94 struct ViewHostMsg_GetSearchProviderInstallState_Params; | 89 struct ViewHostMsg_GetSearchProviderInstallState_Params; |
| 95 struct ViewHostMsg_PageHasOSDD_Type; | 90 struct ViewHostMsg_PageHasOSDD_Type; |
| 96 struct ViewHostMsg_FrameNavigate_Params; | 91 struct ViewHostMsg_FrameNavigate_Params; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 144 |
| 150 template <> | 145 template <> |
| 151 struct ParamTraits<ContextMenuParams> { | 146 struct ParamTraits<ContextMenuParams> { |
| 152 typedef ContextMenuParams param_type; | 147 typedef ContextMenuParams param_type; |
| 153 static void Write(Message* m, const param_type& p); | 148 static void Write(Message* m, const param_type& p); |
| 154 static bool Read(const Message* m, void** iter, param_type* p); | 149 static bool Read(const Message* m, void** iter, param_type* p); |
| 155 static void Log(const param_type& p, std::string* l); | 150 static void Log(const param_type& p, std::string* l); |
| 156 }; | 151 }; |
| 157 | 152 |
| 158 template <> | 153 template <> |
| 159 struct ParamTraits<webkit::npapi::WebPluginGeometry> { | 154 struct ParamTraits<webkit_glue::WebPluginGeometry> { |
| 160 typedef webkit::npapi::WebPluginGeometry param_type; | 155 typedef webkit_glue::WebPluginGeometry param_type; |
| 161 static void Write(Message* m, const param_type& p); | 156 static void Write(Message* m, const param_type& p); |
| 162 static bool Read(const Message* m, void** iter, param_type* p); | 157 static bool Read(const Message* m, void** iter, param_type* p); |
| 163 static void Log(const param_type& p, std::string* l); | 158 static void Log(const param_type& p, std::string* l); |
| 164 }; | 159 }; |
| 165 | 160 |
| 166 // Traits for ViewMsg_GetPlugins_Reply structure to pack/unpack. | 161 // Traits for ViewMsg_GetPlugins_Reply structure to pack/unpack. |
| 167 template <> | 162 template <> |
| 168 struct ParamTraits<webkit::npapi::WebPluginMimeType> { | 163 struct ParamTraits<WebPluginMimeType> { |
| 169 typedef webkit::npapi::WebPluginMimeType param_type; | 164 typedef WebPluginMimeType param_type; |
| 170 static void Write(Message* m, const param_type& p); | 165 static void Write(Message* m, const param_type& p); |
| 171 static bool Read(const Message* m, void** iter, param_type* r); | 166 static bool Read(const Message* m, void** iter, param_type* r); |
| 172 static void Log(const param_type& p, std::string* l); | 167 static void Log(const param_type& p, std::string* l); |
| 173 }; | 168 }; |
| 174 | 169 |
| 175 template <> | 170 template <> |
| 176 struct ParamTraits<webkit::npapi::WebPluginInfo> { | 171 struct ParamTraits<WebPluginInfo> { |
| 177 typedef webkit::npapi::WebPluginInfo param_type; | 172 typedef WebPluginInfo param_type; |
| 178 static void Write(Message* m, const param_type& p); | 173 static void Write(Message* m, const param_type& p); |
| 179 static bool Read(const Message* m, void** iter, param_type* r); | 174 static bool Read(const Message* m, void** iter, param_type* r); |
| 180 static void Log(const param_type& p, std::string* l); | 175 static void Log(const param_type& p, std::string* l); |
| 181 }; | 176 }; |
| 182 | 177 |
| 183 // Traits for webkit_glue::PasswordFormDomManager::FillData. | 178 // Traits for webkit_glue::PasswordFormDomManager::FillData. |
| 184 template <> | 179 template <> |
| 185 struct ParamTraits<webkit_glue::PasswordFormFillData> { | 180 struct ParamTraits<webkit_glue::PasswordFormFillData> { |
| 186 typedef webkit_glue::PasswordFormFillData param_type; | 181 typedef webkit_glue::PasswordFormFillData param_type; |
| 187 static void Write(Message* m, const param_type& p); | 182 static void Write(Message* m, const param_type& p); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 static void Write(Message* m, const param_type& p); | 544 static void Write(Message* m, const param_type& p); |
| 550 static bool Read(const Message* m, void** iter, param_type* p); | 545 static bool Read(const Message* m, void** iter, param_type* p); |
| 551 static void Log(const param_type& p, std::string* l); | 546 static void Log(const param_type& p, std::string* l); |
| 552 }; | 547 }; |
| 553 | 548 |
| 554 } // namespace IPC | 549 } // namespace IPC |
| 555 | 550 |
| 556 #include "chrome/common/render_messages_internal.h" | 551 #include "chrome/common/render_messages_internal.h" |
| 557 | 552 |
| 558 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 553 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |