Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/common/render_messages.h

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/gfx/native_widget_types.h" 13 #include "base/gfx/native_widget_types.h"
14 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #include "chrome/browser/renderer_host/resource_handler.h" 16 #include "chrome/browser/renderer_host/resource_handler.h"
17 #include "chrome/common/common_param_traits.h" 17 #include "chrome/common/common_param_traits.h"
18 #include "chrome/common/css_colors.h" 18 #include "chrome/common/css_colors.h"
19 #include "chrome/common/filter_policy.h" 19 #include "chrome/common/filter_policy.h"
20 #include "chrome/common/modal_dialog_event.h" 20 #include "chrome/common/modal_dialog_event.h"
21 #include "chrome/common/page_transition_types.h" 21 #include "chrome/common/page_transition_types.h"
22 #include "chrome/common/renderer_preferences.h" 22 #include "chrome/common/renderer_preferences.h"
23 #include "chrome/common/transport_dib.h" 23 #include "chrome/common/transport_dib.h"
24 #include "chrome/common/view_types.h"
24 #include "chrome/common/webkit_param_traits.h" 25 #include "chrome/common/webkit_param_traits.h"
25 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
26 #include "ipc/ipc_message_utils.h" 27 #include "ipc/ipc_message_utils.h"
27 #include "media/audio/audio_output.h" 28 #include "media/audio/audio_output.h"
28 #include "net/base/upload_data.h" 29 #include "net/base/upload_data.h"
29 #include "net/http/http_response_headers.h" 30 #include "net/http/http_response_headers.h"
30 #include "webkit/glue/autofill_form.h" 31 #include "webkit/glue/autofill_form.h"
31 #include "webkit/glue/context_menu.h" 32 #include "webkit/glue/context_menu.h"
32 #include "webkit/glue/form_data.h" 33 #include "webkit/glue/form_data.h"
33 #include "webkit/glue/password_form.h" 34 #include "webkit/glue/password_form.h"
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 ReadParam(m, iter, &p->form) && 1153 ReadParam(m, iter, &p->form) &&
1153 ReadParam(m, iter, &p->file) && 1154 ReadParam(m, iter, &p->file) &&
1154 ReadParam(m, iter, &p->submit) && 1155 ReadParam(m, iter, &p->submit) &&
1155 ReadParam(m, iter, &p->other_values); 1156 ReadParam(m, iter, &p->other_values);
1156 } 1157 }
1157 static void Log(const param_type& p, std::wstring* l) { 1158 static void Log(const param_type& p, std::wstring* l) {
1158 l->append(L"<ViewMsg_UploadFile_Params>"); 1159 l->append(L"<ViewMsg_UploadFile_Params>");
1159 } 1160 }
1160 }; 1161 };
1161 1162
1162
1163
1164 // Traits for webkit_glue::PasswordFormDomManager::FillData. 1163 // Traits for webkit_glue::PasswordFormDomManager::FillData.
1165 template <> 1164 template <>
1166 struct ParamTraits<webkit_glue::PasswordFormDomManager::FillData> { 1165 struct ParamTraits<webkit_glue::PasswordFormDomManager::FillData> {
1167 typedef webkit_glue::PasswordFormDomManager::FillData param_type; 1166 typedef webkit_glue::PasswordFormDomManager::FillData param_type;
1168 static void Write(Message* m, const param_type& p) { 1167 static void Write(Message* m, const param_type& p) {
1169 WriteParam(m, p.basic_data); 1168 WriteParam(m, p.basic_data);
1170 WriteParam(m, p.additional_logins); 1169 WriteParam(m, p.additional_logins);
1171 WriteParam(m, p.wait_for_username); 1170 WriteParam(m, p.wait_for_username);
1172 } 1171 }
1173 static bool Read(const Message* m, void** iter, param_type* r) { 1172 static bool Read(const Message* m, void** iter, param_type* r) {
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 l->append(L", "); 1992 l->append(L", ");
1994 LogParam(p.cookie, l); 1993 LogParam(p.cookie, l);
1995 l->append(L", "); 1994 l->append(L", ");
1996 LogParam(p.expected_pages_count, l); 1995 LogParam(p.expected_pages_count, l);
1997 l->append(L", "); 1996 l->append(L", ");
1998 LogParam(p.has_selection, l); 1997 LogParam(p.has_selection, l);
1999 l->append(L")"); 1998 l->append(L")");
2000 } 1999 }
2001 }; 2000 };
2002 2001
2002 template <>
2003 struct SimilarTypeTraits<ViewType::Type> {
2004 typedef int Type;
2005 };
2003 2006
2004 } // namespace IPC 2007 } // namespace IPC
2005 2008
2006 2009
2007 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 2010 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
2008 #include "ipc/ipc_message_macros.h" 2011 #include "ipc/ipc_message_macros.h"
2009 2012
2010 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 2013 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698