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

Side by Side Diff: components/omnibox/autocomplete_classifier.cc

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 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 unified diff | Download patch
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/autocomplete_classifier.h" 5 #include "components/omnibox/autocomplete_classifier.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "components/metrics/proto/omnibox_event.pb.h" 8 #include "components/metrics/proto/omnibox_event.pb.h"
9 #include "components/omnibox/autocomplete_controller.h"
10 #include "components/omnibox/autocomplete_input.h" 10 #include "components/omnibox/autocomplete_input.h"
11 #include "components/omnibox/autocomplete_match.h" 11 #include "components/omnibox/autocomplete_match.h"
12 #include "components/omnibox/autocomplete_provider.h" 12 #include "components/omnibox/autocomplete_provider.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 // static 15 // static
16 const int AutocompleteClassifier::kDefaultOmniboxProviders = 16 const int AutocompleteClassifier::kDefaultOmniboxProviders =
17 AutocompleteProvider::TYPE_BOOKMARK | 17 AutocompleteProvider::TYPE_BOOKMARK |
18 AutocompleteProvider::TYPE_BUILTIN | 18 AutocompleteProvider::TYPE_BUILTIN |
19 AutocompleteProvider::TYPE_HISTORY_QUICK | 19 AutocompleteProvider::TYPE_HISTORY_QUICK |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 DCHECK(result.default_match() != result.end()); 60 DCHECK(result.default_match() != result.end());
61 *match = *result.default_match(); 61 *match = *result.default_match();
62 if (alternate_nav_url) 62 if (alternate_nav_url)
63 *alternate_nav_url = result.alternate_nav_url(); 63 *alternate_nav_url = result.alternate_nav_url();
64 } 64 }
65 65
66 void AutocompleteClassifier::Shutdown() { 66 void AutocompleteClassifier::Shutdown() {
67 controller_.reset(); 67 controller_.reset();
68 } 68 }
OLDNEW
« no previous file with comments | « components/omnibox/autocomplete_classifier.h ('k') | components/omnibox/autocomplete_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698