Commit adeb16a4 authored by mukai@chromium.org's avatar mukai@chromium.org

Remove unused code in common/renderer about autocomplete_match_type

autocomplete_match_type is in chrome/common, but it is not used
by common and renderer actually. This CL removes the unused
includes and unused class referring AutocompleteMatchType.

BUG=388510
R=pkasting@chromium.org, brettw@chromium.org
TBR=jered@chromium.org, jschuh@chromium.org
TEST=build all

Review URL: https://codereview.chromium.org/377783005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281984 0039d316-1c4b-4281-b951-d872f2087c98
parent 6038eab2
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "base/basictypes.h" #include "base/basictypes.h"
#include "base/strings/string16.h" #include "base/strings/string16.h"
#include "chrome/common/autocomplete_match_type.h"
#include "content/public/common/page_transition_types.h" #include "content/public/common/page_transition_types.h"
#include "url/gurl.h" #include "url/gurl.h"
...@@ -33,45 +32,6 @@ struct InstantSuggestion { ...@@ -33,45 +32,6 @@ struct InstantSuggestion {
std::string metadata; std::string metadata;
}; };
// Omnibox dropdown matches provided by the native autocomplete providers.
struct InstantAutocompleteResult {
InstantAutocompleteResult();
~InstantAutocompleteResult();
// The provider name, as returned by AutocompleteProvider::GetName().
base::string16 provider;
// The type of the result.
AutocompleteMatchType::Type type;
// The description (title), same as AutocompleteMatch::description.
base::string16 description;
// The URL of the match, same as AutocompleteMatch::destination_url.
base::string16 destination_url;
// The search query for this match. Only set for matches coming from
// SearchProvider. Populated using AutocompleteMatch::contents.
base::string16 search_query;
// The transition type to use when the user opens this match. Same as
// AutocompleteMatch::transition.
content::PageTransition transition;
// The relevance score of this match, same as AutocompleteMatch::relevance.
int relevance;
// The index of the match in AutocompleteResult. Used to get the instant
// suggestion metadata details. Set to kNoMatchIndex if the
// suggestion is displayed on the Instant NTP and set to a positive value if
// the suggestion is displayed on the Local NTP.
size_t autocomplete_match_index;
};
// An InstantAutocompleteResult along with its assigned restricted ID.
typedef std::pair<InstantRestrictedID, InstantAutocompleteResult>
InstantAutocompleteResultIDPair;
// The alignment of the theme background image. // The alignment of the theme background image.
enum ThemeBackgroundImageAlignment { enum ThemeBackgroundImageAlignment {
THEME_BKGRND_IMAGE_ALIGN_CENTER, THEME_BKGRND_IMAGE_ALIGN_CENTER,
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/values.h" #include "base/values.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/common/autocomplete_match_type.h"
#include "chrome/common/common_param_traits.h" #include "chrome/common/common_param_traits.h"
#include "chrome/common/content_settings.h" #include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_pattern.h" #include "chrome/common/content_settings_pattern.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "chrome/common/autocomplete_match_type.h"
#include "chrome/common/instant_types.h" #include "chrome/common/instant_types.h"
#include "chrome/common/ntp_logging_events.h" #include "chrome/common/ntp_logging_events.h"
#include "chrome/common/url_constants.h" #include "chrome/common/url_constants.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment