summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index da54616..fb68afa 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -23,7 +23,6 @@
#include "chrome/common/translate_errors.h"
#include "chrome/common/view_types.h"
#include "chrome/common/webkit_param_traits.h"
-#include "gfx/native_widget_types.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_platform_file.h" // ifdefed typedef.
#include "third_party/WebKit/WebKit/chromium/public/WebStorageArea.h"
@@ -53,6 +52,10 @@ namespace webkit_blob {
class BlobData;
}
+namespace speech_input {
+struct SpeechInputResultItem;
+}
+
namespace webkit_glue {
struct FormData;
class FormField;
@@ -312,7 +315,7 @@ struct ParamTraits<gfx::NativeView> {
}
static void Log(const param_type& p, std::string* l) {
- l->append(StringPrintf("<gfx::NativeView>"));
+ l->append(base::StringPrintf("<gfx::NativeView>"));
}
};
@@ -627,6 +630,14 @@ struct ParamTraits<PepperDirEntry> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<speech_input::SpeechInputResultItem> {
+ typedef speech_input::SpeechInputResultItem param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"