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

Unified Diff: chrome/common/instant_types.h

Issue 377783005: Remove unused code in common/renderer about autocomplete_match_type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/instant_types.h
diff --git a/chrome/common/instant_types.h b/chrome/common/instant_types.h
index 4cc41db5b1f6370a3130072942ed87447aeb582d..3cf8223c5434e846f60a22d8ea2d39397d9c398f 100644
--- a/chrome/common/instant_types.h
+++ b/chrome/common/instant_types.h
@@ -10,7 +10,6 @@
#include "base/basictypes.h"
#include "base/strings/string16.h"
-#include "chrome/common/autocomplete_match_type.h"
#include "content/public/common/page_transition_types.h"
#include "url/gurl.h"
@@ -33,45 +32,6 @@ struct InstantSuggestion {
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.
enum ThemeBackgroundImageAlignment {
THEME_BKGRND_IMAGE_ALIGN_CENTER,
« no previous file with comments | « no previous file | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698