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

Unified Diff: chrome/common/automation_messages.h

Issue 7104029: Automation: fix chrome/browser dependency on chrome/test headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/automation_messages.h
===================================================================
--- chrome/common/automation_messages.h (revision 87452)
+++ chrome/common/automation_messages.h (working copy)
@@ -22,6 +22,8 @@
#ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H__
#define CHROME_COMMON_AUTOMATION_MESSAGES_H__
+struct AutocompleteMatch;
+
struct AutomationMsg_Find_Params {
// Unused value, which exists only for backwards compat.
int unused;
@@ -202,6 +204,24 @@
int load_flags; // see net/base/load_flags.h
};
+// The purpose of this class is to act as a serializable version of
+// AutocompleteMatch. The reason for this class is because we don't want to
+// serialize all elements of AutocompleteMatch and we want some data from the
+// autocomplete provider without the hassle of serializing it.
+struct AutocompleteMatchData {
+ std::string provider_name;
+ int relevance;
+ bool deletable;
+ string16 fill_into_edit;
+ size_t inline_autocomplete_offset;
+ GURL destination_url;
+ string16 contents;
+ string16 description;
+ bool is_history_what_you_typed_match;
+ std::string type;
+ bool starred;
+};
+
namespace IPC {
template <>
@@ -357,6 +377,14 @@
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<AutocompleteMatchData> {
+ typedef AutocompleteMatchData param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__

Powered by Google App Engine
This is Rietveld 408576698