summaryrefslogtreecommitdiffstats
path: root/chrome/common/devtools_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/devtools_messages.h')
-rw-r--r--chrome/common/devtools_messages.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/common/devtools_messages.h b/chrome/common/devtools_messages.h
index abb740d..6c095f4 100644
--- a/chrome/common/devtools_messages.h
+++ b/chrome/common/devtools_messages.h
@@ -5,6 +5,33 @@
#ifndef CHROME_COMMON_DEVTOOLS_MESSAGES_H_
#define CHROME_COMMON_DEVTOOLS_MESSAGES_H_
+#include "ipc/ipc_message_utils.h"
+#include "webkit/glue/devtools/devtools_message_data.h"
+
+namespace IPC {
+
+// Traits for DevToolsMessageData structure to pack/unpack.
+template <>
+struct ParamTraits<DevToolsMessageData> {
+ typedef DevToolsMessageData param_type;
+ static void Write(Message* m, const param_type& p) {
+ WriteParam(m, p.class_name);
+ WriteParam(m, p.method_name);
+ WriteParam(m, p.arguments);
+ }
+ static bool Read(const Message* m, void** iter, param_type* p) {
+ return
+ ReadParam(m, iter, &p->class_name) &&
+ ReadParam(m, iter, &p->method_name) &&
+ ReadParam(m, iter, &p->arguments);
+ }
+ static void Log(const param_type& p, std::wstring* l) {
+ l->append(L"<DevToolsMessageData>");
+ }
+};
+
+} // namespace IPC
+
#define MESSAGES_INTERNAL_FILE "chrome/common/devtools_messages_internal.h"
#include "ipc/ipc_message_macros.h"