| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "net/http/http_response_headers.h" | 36 #include "net/http/http_response_headers.h" |
| 37 #include "webkit/appcache/appcache_interfaces.h" | 37 #include "webkit/appcache/appcache_interfaces.h" |
| 38 #include "webkit/glue/context_menu.h" | 38 #include "webkit/glue/context_menu.h" |
| 39 #include "webkit/glue/form_data.h" | 39 #include "webkit/glue/form_data.h" |
| 40 #include "webkit/glue/form_field.h" | 40 #include "webkit/glue/form_field.h" |
| 41 #include "webkit/glue/form_field_values.h" | 41 #include "webkit/glue/form_field_values.h" |
| 42 #include "webkit/glue/password_form.h" | 42 #include "webkit/glue/password_form.h" |
| 43 #include "webkit/glue/password_form_dom_manager.h" | 43 #include "webkit/glue/password_form_dom_manager.h" |
| 44 #include "webkit/glue/resource_loader_bridge.h" | 44 #include "webkit/glue/resource_loader_bridge.h" |
| 45 #include "webkit/glue/webaccessibility.h" | 45 #include "webkit/glue/webaccessibility.h" |
| 46 #include "webkit/glue/webcookie.h" |
| 46 #include "webkit/glue/webdropdata.h" | 47 #include "webkit/glue/webdropdata.h" |
| 47 #include "webkit/glue/webmenuitem.h" | 48 #include "webkit/glue/webmenuitem.h" |
| 48 #include "webkit/glue/webplugin.h" | 49 #include "webkit/glue/webplugin.h" |
| 49 #include "webkit/glue/webplugininfo.h" | 50 #include "webkit/glue/webplugininfo.h" |
| 50 #include "webkit/glue/webpreferences.h" | 51 #include "webkit/glue/webpreferences.h" |
| 51 | 52 |
| 52 #if defined(OS_WIN) | 53 #if defined(OS_WIN) |
| 53 #include "base/platform_file.h" | 54 #include "base/platform_file.h" |
| 54 #endif | 55 #endif |
| 55 | 56 |
| (...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2117 break; | 2118 break; |
| 2118 default: | 2119 default: |
| 2119 NOTIMPLEMENTED(); | 2120 NOTIMPLEMENTED(); |
| 2120 control = L"UNKNOWN"; | 2121 control = L"UNKNOWN"; |
| 2121 break; | 2122 break; |
| 2122 } | 2123 } |
| 2123 LogParam(control, l); | 2124 LogParam(control, l); |
| 2124 } | 2125 } |
| 2125 }; | 2126 }; |
| 2126 | 2127 |
| 2128 // Traits for WebCookie |
| 2129 template <> |
| 2130 struct ParamTraits<webkit_glue::WebCookie> { |
| 2131 typedef webkit_glue::WebCookie param_type; |
| 2132 static void Write(Message* m, const param_type& p) { |
| 2133 WriteParam(m, p.name); |
| 2134 WriteParam(m, p.value); |
| 2135 WriteParam(m, p.domain); |
| 2136 WriteParam(m, p.path); |
| 2137 WriteParam(m, p.expires); |
| 2138 WriteParam(m, p.http_only); |
| 2139 WriteParam(m, p.secure); |
| 2140 WriteParam(m, p.session); |
| 2141 } |
| 2142 static bool Read(const Message* m, void** iter, param_type* p) { |
| 2143 return |
| 2144 ReadParam(m, iter, &p->name) && |
| 2145 ReadParam(m, iter, &p->value) && |
| 2146 ReadParam(m, iter, &p->domain) && |
| 2147 ReadParam(m, iter, &p->path) && |
| 2148 ReadParam(m, iter, &p->expires) && |
| 2149 ReadParam(m, iter, &p->http_only) && |
| 2150 ReadParam(m, iter, &p->secure) && |
| 2151 ReadParam(m, iter, &p->session); |
| 2152 } |
| 2153 static void Log(const param_type& p, std::wstring* l) { |
| 2154 l->append(L"<WebCookie>"); |
| 2155 } |
| 2156 }; |
| 2157 |
| 2127 } // namespace IPC | 2158 } // namespace IPC |
| 2128 | 2159 |
| 2129 | 2160 |
| 2130 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2161 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2131 #include "ipc/ipc_message_macros.h" | 2162 #include "ipc/ipc_message_macros.h" |
| 2132 | 2163 |
| 2133 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2164 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |