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

Side by Side Diff: chrome/browser/autocomplete/history_url_provider.cc

Issue 10909130: autocomplete: Add AutocompleteProvider::Type enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more indentation changes Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/history_url_provider.h" 5 #include "chrome/browser/autocomplete/history_url_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 failed(false), 222 failed(false),
223 languages(languages), 223 languages(languages),
224 dont_suggest_exact_input(false) { 224 dont_suggest_exact_input(false) {
225 } 225 }
226 226
227 HistoryURLProviderParams::~HistoryURLProviderParams() { 227 HistoryURLProviderParams::~HistoryURLProviderParams() {
228 } 228 }
229 229
230 HistoryURLProvider::HistoryURLProvider(AutocompleteProviderListener* listener, 230 HistoryURLProvider::HistoryURLProvider(AutocompleteProviderListener* listener,
231 Profile* profile) 231 Profile* profile)
232 : HistoryProvider(listener, profile, "HistoryURL"), 232 : HistoryProvider(listener, profile,
233 AutocompleteProvider::TYPE_HISTORY_URL),
233 params_(NULL) { 234 params_(NULL) {
234 } 235 }
235 236
236 // static 237 // static
237 AutocompleteMatch HistoryURLProvider::SuggestExactInput( 238 AutocompleteMatch HistoryURLProvider::SuggestExactInput(
238 AutocompleteProvider* provider, 239 AutocompleteProvider* provider,
239 const AutocompleteInput& input, 240 const AutocompleteInput& input,
240 bool trim_http) { 241 bool trim_http) {
241 AutocompleteMatch match(provider, 0, false, 242 AutocompleteMatch match(provider, 0, false,
242 AutocompleteMatch::URL_WHAT_YOU_TYPED); 243 AutocompleteMatch::URL_WHAT_YOU_TYPED);
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 info.title(), 925 info.title(),
925 ACMatchClassification::NONE, 926 ACMatchClassification::NONE,
926 &match.description_class); 927 &match.description_class);
927 928
928 match.RecordAdditionalInfo("typed count", info.typed_count()); 929 match.RecordAdditionalInfo("typed count", info.typed_count());
929 match.RecordAdditionalInfo("visit count", info.visit_count()); 930 match.RecordAdditionalInfo("visit count", info.visit_count());
930 match.RecordAdditionalInfo("last visit", info.last_visit()); 931 match.RecordAdditionalInfo("last visit", info.last_visit());
931 932
932 return match; 933 return match;
933 } 934 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698