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

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

Issue 28108: Add an identity (id) to system drag & drop. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 10 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/browser/tab_contents/web_drop_target.cc ('k') | webkit/glue/webdropdata.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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 static void Log(const param_type& p, std::wstring* l) { 1532 static void Log(const param_type& p, std::wstring* l) {
1533 l->append(L"<WebPreferences>"); 1533 l->append(L"<WebPreferences>");
1534 } 1534 }
1535 }; 1535 };
1536 1536
1537 // Traits for WebDropData 1537 // Traits for WebDropData
1538 template <> 1538 template <>
1539 struct ParamTraits<WebDropData> { 1539 struct ParamTraits<WebDropData> {
1540 typedef WebDropData param_type; 1540 typedef WebDropData param_type;
1541 static void Write(Message* m, const param_type& p) { 1541 static void Write(Message* m, const param_type& p) {
1542 WriteParam(m, p.identity);
1542 WriteParam(m, p.url); 1543 WriteParam(m, p.url);
1543 WriteParam(m, p.url_title); 1544 WriteParam(m, p.url_title);
1544 WriteParam(m, p.file_extension); 1545 WriteParam(m, p.file_extension);
1545 WriteParam(m, p.filenames); 1546 WriteParam(m, p.filenames);
1546 WriteParam(m, p.plain_text); 1547 WriteParam(m, p.plain_text);
1547 WriteParam(m, p.text_html); 1548 WriteParam(m, p.text_html);
1548 WriteParam(m, p.html_base_url); 1549 WriteParam(m, p.html_base_url);
1549 WriteParam(m, p.file_description_filename); 1550 WriteParam(m, p.file_description_filename);
1550 WriteParam(m, p.file_contents); 1551 WriteParam(m, p.file_contents);
1551 } 1552 }
1552 static bool Read(const Message* m, void** iter, param_type* p) { 1553 static bool Read(const Message* m, void** iter, param_type* p) {
1553 return 1554 return
1555 ReadParam(m, iter, &p->identity) &&
1554 ReadParam(m, iter, &p->url) && 1556 ReadParam(m, iter, &p->url) &&
1555 ReadParam(m, iter, &p->url_title) && 1557 ReadParam(m, iter, &p->url_title) &&
1556 ReadParam(m, iter, &p->file_extension) && 1558 ReadParam(m, iter, &p->file_extension) &&
1557 ReadParam(m, iter, &p->filenames) && 1559 ReadParam(m, iter, &p->filenames) &&
1558 ReadParam(m, iter, &p->plain_text) && 1560 ReadParam(m, iter, &p->plain_text) &&
1559 ReadParam(m, iter, &p->text_html) && 1561 ReadParam(m, iter, &p->text_html) &&
1560 ReadParam(m, iter, &p->html_base_url) && 1562 ReadParam(m, iter, &p->html_base_url) &&
1561 ReadParam(m, iter, &p->file_description_filename) && 1563 ReadParam(m, iter, &p->file_description_filename) &&
1562 ReadParam(m, iter, &p->file_contents); 1564 ReadParam(m, iter, &p->file_contents);
1563 } 1565 }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 }; 1744 };
1743 1745
1744 1746
1745 } // namespace IPC 1747 } // namespace IPC
1746 1748
1747 1749
1748 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1750 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1749 #include "chrome/common/ipc_message_macros.h" 1751 #include "chrome/common/ipc_message_macros.h"
1750 1752
1751 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1753 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drop_target.cc ('k') | webkit/glue/webdropdata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698