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

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

Issue 83002: download filename fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/os_exchange_data.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 WriteParam(m, p.unfiltered_link_url); 882 WriteParam(m, p.unfiltered_link_url);
883 WriteParam(m, p.image_url); 883 WriteParam(m, p.image_url);
884 WriteParam(m, p.page_url); 884 WriteParam(m, p.page_url);
885 WriteParam(m, p.frame_url); 885 WriteParam(m, p.frame_url);
886 WriteParam(m, p.selection_text); 886 WriteParam(m, p.selection_text);
887 WriteParam(m, p.misspelled_word); 887 WriteParam(m, p.misspelled_word);
888 WriteParam(m, p.dictionary_suggestions); 888 WriteParam(m, p.dictionary_suggestions);
889 WriteParam(m, p.spellcheck_enabled); 889 WriteParam(m, p.spellcheck_enabled);
890 WriteParam(m, p.edit_flags); 890 WriteParam(m, p.edit_flags);
891 WriteParam(m, p.security_info); 891 WriteParam(m, p.security_info);
892 WriteParam(m, p.frame_charset);
892 } 893 }
893 static bool Read(const Message* m, void** iter, param_type* p) { 894 static bool Read(const Message* m, void** iter, param_type* p) {
894 return 895 return
895 ReadParam(m, iter, &p->node) && 896 ReadParam(m, iter, &p->node) &&
896 ReadParam(m, iter, &p->x) && 897 ReadParam(m, iter, &p->x) &&
897 ReadParam(m, iter, &p->y) && 898 ReadParam(m, iter, &p->y) &&
898 ReadParam(m, iter, &p->link_url) && 899 ReadParam(m, iter, &p->link_url) &&
899 ReadParam(m, iter, &p->unfiltered_link_url) && 900 ReadParam(m, iter, &p->unfiltered_link_url) &&
900 ReadParam(m, iter, &p->image_url) && 901 ReadParam(m, iter, &p->image_url) &&
901 ReadParam(m, iter, &p->page_url) && 902 ReadParam(m, iter, &p->page_url) &&
902 ReadParam(m, iter, &p->frame_url) && 903 ReadParam(m, iter, &p->frame_url) &&
903 ReadParam(m, iter, &p->selection_text) && 904 ReadParam(m, iter, &p->selection_text) &&
904 ReadParam(m, iter, &p->misspelled_word) && 905 ReadParam(m, iter, &p->misspelled_word) &&
905 ReadParam(m, iter, &p->dictionary_suggestions) && 906 ReadParam(m, iter, &p->dictionary_suggestions) &&
906 ReadParam(m, iter, &p->spellcheck_enabled) && 907 ReadParam(m, iter, &p->spellcheck_enabled) &&
907 ReadParam(m, iter, &p->edit_flags) && 908 ReadParam(m, iter, &p->edit_flags) &&
908 ReadParam(m, iter, &p->security_info); 909 ReadParam(m, iter, &p->security_info) &&
910 ReadParam(m, iter, &p->frame_charset);
909 } 911 }
910 static void Log(const param_type& p, std::wstring* l) { 912 static void Log(const param_type& p, std::wstring* l) {
911 l->append(L"<ContextMenuParams>"); 913 l->append(L"<ContextMenuParams>");
912 } 914 }
913 }; 915 };
914 916
915 // Traits for ViewHostMsg_PaintRect_Params structure to pack/unpack. 917 // Traits for ViewHostMsg_PaintRect_Params structure to pack/unpack.
916 template <> 918 template <>
917 struct ParamTraits<ViewHostMsg_PaintRect_Params> { 919 struct ParamTraits<ViewHostMsg_PaintRect_Params> {
918 typedef ViewHostMsg_PaintRect_Params param_type; 920 typedef ViewHostMsg_PaintRect_Params param_type;
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 } 1945 }
1944 }; 1946 };
1945 1947
1946 } // namespace IPC 1948 } // namespace IPC
1947 1949
1948 1950
1949 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1951 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1950 #include "chrome/common/ipc_message_macros.h" 1952 #include "chrome/common/ipc_message_macros.h"
1951 1953
1952 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1954 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/os_exchange_data.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698