OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace appcache { | 34 namespace appcache { |
35 struct AppCacheInfo; | 35 struct AppCacheInfo; |
36 struct AppCacheResourceInfo; | 36 struct AppCacheResourceInfo; |
37 } | 37 } |
38 | 38 |
39 namespace base { | 39 namespace base { |
40 class Time; | 40 class Time; |
41 } | 41 } |
42 | 42 |
43 namespace net { | |
44 class HttpResponseHeaders; | |
45 class UploadData; | |
46 } | |
47 | |
48 namespace webkit_blob { | 43 namespace webkit_blob { |
49 class BlobData; | 44 class BlobData; |
50 } | 45 } |
51 | 46 |
52 namespace webkit_glue { | 47 namespace webkit_glue { |
53 struct CustomContextMenuContext; | 48 struct CustomContextMenuContext; |
54 struct ResourceDevToolsInfo; | |
55 struct ResourceLoadTimingInfo; | |
56 struct ResourceResponseInfo; | |
57 struct WebAccessibility; | 49 struct WebAccessibility; |
58 struct WebCookie; | 50 struct WebCookie; |
59 } | 51 } |
60 | 52 |
61 namespace webkit { | 53 namespace webkit { |
62 namespace npapi { | 54 namespace npapi { |
63 struct WebPluginGeometry; | 55 struct WebPluginGeometry; |
64 struct WebPluginInfo; | 56 struct WebPluginInfo; |
65 struct WebPluginMimeType; | 57 struct WebPluginMimeType; |
66 } | 58 } |
67 } | 59 } |
68 | 60 |
69 struct AudioBuffersState; | 61 struct AudioBuffersState; |
70 class ExtensionExtent; | 62 class ExtensionExtent; |
71 class GURL; | 63 class GURL; |
72 class SkBitmap; | 64 class SkBitmap; |
73 class URLPattern; | 65 class URLPattern; |
74 struct ContextMenuParams; | 66 struct ContextMenuParams; |
75 struct EditCommand; | 67 struct EditCommand; |
76 struct RendererPreferences; | 68 struct RendererPreferences; |
77 struct ResourceResponseHead; | |
78 struct SyncLoadResult; | |
79 struct WebDropData; | 69 struct WebDropData; |
80 struct WebMenuItem; | 70 struct WebMenuItem; |
81 struct WebPreferences; | 71 struct WebPreferences; |
82 | 72 |
83 // Forward declarations of structures used to store data for when we have a lot | 73 // Forward declarations of structures used to store data for when we have a lot |
84 // of parameters. | 74 // of parameters. |
85 struct ViewMsg_Navigate_Params; | 75 struct ViewHostMsg_AccessibilityNotification_Params; |
86 struct ViewMsg_AudioStreamState_Params; | 76 struct ViewHostMsg_Audio_CreateStream_Params; |
87 struct ViewMsg_StopFinding_Params; | 77 struct ViewHostMsg_CreateWindow_Params; |
88 struct ViewHostMsg_GetSearchProviderInstallState_Params; | 78 struct ViewHostMsg_CreateWorker_Params; |
89 struct ViewHostMsg_PageHasOSDD_Type; | |
90 struct ViewHostMsg_FrameNavigate_Params; | |
91 struct ViewHostMsg_UpdateRect_Params; | |
92 struct ViewMsg_ClosePage_Params; | |
93 struct ViewHostMsg_Resource_Request; | |
94 struct ViewMsg_Print_Params; | |
95 struct ViewMsg_PrintPage_Params; | |
96 struct ViewMsg_PrintPages_Params; | |
97 struct ViewHostMsg_DidPreviewDocument_Params; | 79 struct ViewHostMsg_DidPreviewDocument_Params; |
98 struct ViewHostMsg_DidPrintPage_Params; | 80 struct ViewHostMsg_DidPrintPage_Params; |
99 struct ViewHostMsg_Audio_CreateStream_Params; | 81 struct ViewHostMsg_DomMessage_Params; |
| 82 struct ViewHostMsg_FrameNavigate_Params; |
| 83 struct ViewHostMsg_GetSearchProviderInstallState_Params; |
| 84 struct ViewHostMsg_MalwareDOMDetails_Params; |
| 85 struct ViewHostMsg_PageHasOSDD_Type; |
| 86 struct ViewHostMsg_RunFileChooser_Params; |
| 87 struct ViewHostMsg_ShowNotification_Params; |
100 struct ViewHostMsg_ShowPopup_Params; | 88 struct ViewHostMsg_ShowPopup_Params; |
101 struct ViewHostMsg_ScriptedPrint_Params; | 89 struct ViewHostMsg_ScriptedPrint_Params; |
| 90 struct ViewHostMsg_UpdateRect_Params; |
| 91 struct ViewMsg_AudioStreamState_Params; |
| 92 struct ViewMsg_ClosePage_Params; |
| 93 struct ViewMsg_DeviceOrientationUpdated_Params; |
102 struct ViewMsg_ExecuteCode_Params; | 94 struct ViewMsg_ExecuteCode_Params; |
103 struct ViewHostMsg_CreateWorker_Params; | 95 struct ViewMsg_ExtensionLoaded_Params; |
104 struct ViewHostMsg_ShowNotification_Params; | |
105 struct ViewMsg_New_Params; | 96 struct ViewMsg_New_Params; |
106 struct ViewHostMsg_CreateWindow_Params; | 97 struct ViewMsg_Navigate_Params; |
107 struct ViewHostMsg_RunFileChooser_Params; | 98 struct ViewMsg_Print_Params; |
108 struct ViewMsg_ExtensionLoaded_Params; | 99 struct ViewMsg_PrintPages_Params; |
109 struct ViewMsg_DeviceOrientationUpdated_Params; | 100 struct ViewMsg_PrintPage_Params; |
110 struct ViewHostMsg_DomMessage_Params; | 101 struct ViewMsg_StopFinding_Params; |
111 struct ViewHostMsg_AccessibilityNotification_Params; | |
112 struct ViewHostMsg_MalwareDOMDetails_Params; | |
113 | 102 |
114 // Values that may be OR'd together to form the 'flags' parameter of the | 103 // Values that may be OR'd together to form the 'flags' parameter of the |
115 // ViewMsg_EnablePreferredSizeChangedMode message. | 104 // ViewMsg_EnablePreferredSizeChangedMode message. |
116 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { | 105 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { |
117 kPreferredSizeNothing, | 106 kPreferredSizeNothing, |
118 kPreferredSizeWidth = 1 << 0, | 107 kPreferredSizeWidth = 1 << 0, |
119 // Requesting the height currently requires a polling loop in render_view.cc. | 108 // Requesting the height currently requires a polling loop in render_view.cc. |
120 kPreferredSizeHeightThisIsSlow = 1 << 1, | 109 kPreferredSizeHeightThisIsSlow = 1 << 1, |
121 }; | 110 }; |
122 | 111 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 }; | 168 }; |
180 | 169 |
181 template <> | 170 template <> |
182 struct ParamTraits<webkit::npapi::WebPluginInfo> { | 171 struct ParamTraits<webkit::npapi::WebPluginInfo> { |
183 typedef webkit::npapi::WebPluginInfo param_type; | 172 typedef webkit::npapi::WebPluginInfo param_type; |
184 static void Write(Message* m, const param_type& p); | 173 static void Write(Message* m, const param_type& p); |
185 static bool Read(const Message* m, void** iter, param_type* r); | 174 static bool Read(const Message* m, void** iter, param_type* r); |
186 static void Log(const param_type& p, std::string* l); | 175 static void Log(const param_type& p, std::string* l); |
187 }; | 176 }; |
188 | 177 |
189 template <> | |
190 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | |
191 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | |
192 static void Write(Message* m, const param_type& p); | |
193 static bool Read(const Message* m, void** iter, param_type* r); | |
194 static void Log(const param_type& p, std::string* l); | |
195 }; | |
196 | |
197 // Traits for webkit_glue::ResourceLoadTimingInfo | |
198 template <> | |
199 struct ParamTraits<webkit_glue::ResourceLoadTimingInfo> { | |
200 typedef webkit_glue::ResourceLoadTimingInfo param_type; | |
201 static void Write(Message* m, const param_type& p); | |
202 static bool Read(const Message* m, void** iter, param_type* r); | |
203 static void Log(const param_type& p, std::string* l); | |
204 }; | |
205 | |
206 template <> | |
207 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { | |
208 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; | |
209 static void Write(Message* m, const param_type& p); | |
210 static bool Read(const Message* m, void** iter, param_type* r); | |
211 static void Log(const param_type& p, std::string* l); | |
212 }; | |
213 | |
214 // Traits for webkit_glue::ResourceResponseInfo | |
215 template <> | |
216 struct ParamTraits<webkit_glue::ResourceResponseInfo> { | |
217 typedef webkit_glue::ResourceResponseInfo param_type; | |
218 static void Write(Message* m, const param_type& p); | |
219 static bool Read(const Message* m, void** iter, param_type* r); | |
220 static void Log(const param_type& p, std::string* l); | |
221 }; | |
222 | |
223 template <> | |
224 struct ParamTraits<ResourceResponseHead> { | |
225 typedef ResourceResponseHead param_type; | |
226 static void Write(Message* m, const param_type& p); | |
227 static bool Read(const Message* m, void** iter, param_type* r); | |
228 static void Log(const param_type& p, std::string* l); | |
229 }; | |
230 | |
231 template <> | |
232 struct ParamTraits<SyncLoadResult> { | |
233 typedef SyncLoadResult param_type; | |
234 static void Write(Message* m, const param_type& p); | |
235 static bool Read(const Message* m, void** iter, param_type* r); | |
236 static void Log(const param_type& p, std::string* l); | |
237 }; | |
238 | |
239 // Traits for reading/writing CSS Colors | 178 // Traits for reading/writing CSS Colors |
240 template <> | 179 template <> |
241 struct ParamTraits<CSSColors::CSSColorName> { | 180 struct ParamTraits<CSSColors::CSSColorName> { |
242 typedef CSSColors::CSSColorName param_type; | 181 typedef CSSColors::CSSColorName param_type; |
243 static void Write(Message* m, const param_type& p) { | 182 static void Write(Message* m, const param_type& p) { |
244 WriteParam(m, static_cast<int>(p)); | 183 WriteParam(m, static_cast<int>(p)); |
245 } | 184 } |
246 static bool Read(const Message* m, void** iter, param_type* p) { | 185 static bool Read(const Message* m, void** iter, param_type* p) { |
247 return ReadParam(m, iter, reinterpret_cast<int*>(p)); | 186 return ReadParam(m, iter, reinterpret_cast<int*>(p)); |
248 } | 187 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 static void Write(Message* m, const param_type& p); | 468 static void Write(Message* m, const param_type& p); |
530 static bool Read(const Message* m, void** iter, param_type* p); | 469 static bool Read(const Message* m, void** iter, param_type* p); |
531 static void Log(const param_type& p, std::string* l); | 470 static void Log(const param_type& p, std::string* l); |
532 }; | 471 }; |
533 | 472 |
534 } // namespace IPC | 473 } // namespace IPC |
535 | 474 |
536 #include "chrome/common/render_messages_internal.h" | 475 #include "chrome/common/render_messages_internal.h" |
537 | 476 |
538 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 477 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |