diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 07:49:01 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 07:49:01 +0000 |
commit | b77ddff87f26cc45afb2799a6ba09e496b516871 (patch) | |
tree | d313e6db1bffe95136980a4836889ca59f9f8e25 /chrome/common | |
parent | ff7eadd09444488907d64e9717f3fc9bda621d43 (diff) | |
download | chromium_src-b77ddff87f26cc45afb2799a6ba09e496b516871.zip chromium_src-b77ddff87f26cc45afb2799a6ba09e496b516871.tar.gz chromium_src-b77ddff87f26cc45afb2799a6ba09e496b516871.tar.bz2 |
Change InstantAutocompleteResult::Type to be AutocompleteMatchType::Type.
To pass InstantAutocompleteResult::Type back and forth between the browser and renderer, change the data type to be AutocompleteMatchType::Type instead of an opaque string.
BUG=239173
TEST=none
Review URL: https://chromiumcodereview.appspot.com/15517007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/instant_types.h | 5 | ||||
-rw-r--r-- | chrome/common/render_messages.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h index 7e08d72..1df381c 100644 --- a/chrome/common/instant_types.h +++ b/chrome/common/instant_types.h @@ -9,6 +9,7 @@ #include <utility> #include "base/string16.h" +#include "chrome/common/autocomplete_match_type.h" #include "content/public/common/page_transition_types.h" #include "googleurl/src/gurl.h" @@ -82,8 +83,8 @@ struct InstantAutocompleteResult { // The provider name, as returned by AutocompleteProvider::GetName(). string16 provider; - // The type of the result, as returned by AutocompleteMatch::TypeToString(). - string16 type; + // The type of the result. + AutocompleteMatchType::Type type; // The description (title), same as AutocompleteMatch::description. string16 description; diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 584d9a7..5a946e3 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -16,6 +16,7 @@ #include "base/stringprintf.h" #include "base/values.h" #include "build/build_config.h" +#include "chrome/common/autocomplete_match_type.h" #include "chrome/common/common_param_traits.h" #include "chrome/common/content_settings.h" #include "chrome/common/content_settings_pattern.h" @@ -117,6 +118,7 @@ struct ParamTraits<ContentSettingsPattern> { #define IPC_MESSAGE_START ChromeMsgStart +IPC_ENUM_TRAITS(AutocompleteMatchType::Type) IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) IPC_ENUM_TRAITS(InstantCompleteBehavior) IPC_ENUM_TRAITS(InstantSizeUnits) |