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

Unified Diff: content/common/content_message_generator.cc

Issue 12035027: Revert 178037 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | content/public/common/common_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_message_generator.cc
===================================================================
--- content/common/content_message_generator.cc (revision 178042)
+++ content/common/content_message_generator.cc (working copy)
@@ -14,6 +14,30 @@
#include "ipc/struct_destructor_macros.h"
#include "content/common/content_message_generator.h"
+#if defined(USE_AURA) && defined(OS_WIN)
+#include "ui/gfx/native_widget_types.h"
+
+namespace IPC {
+// TODO(beng): Figure out why this is needed, fix that issue and remove
+// this. Brett and I were unable to figure out why, but he
+// thought this should be harmless.
+template <>
+struct ParamTraits<gfx::PluginWindowHandle> {
+ typedef gfx::PluginWindowHandle param_type;
+ static void Write(Message* m, const param_type& p) {
+ m->WriteUInt32(reinterpret_cast<uint32>(p));
+ }
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r) {
+ DCHECK_EQ(sizeof(param_type), sizeof(uint32));
+ return m->ReadUInt32(iter, reinterpret_cast<uint32*>(r));
+ }
+ static void Log(const param_type& p, std::string* l) {
+ l->append(StringPrintf("0x%X", p));
+ }
+};
+} // namespace IPC
+#endif
+
// Generate param traits write methods.
#include "ipc/param_traits_write_macros.h"
namespace IPC {
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | content/public/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698