| OLD | NEW | 
|    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/ui/webui/omnibox/omnibox_ui_handler.h" |    5 #include "chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h" | 
|    6  |    6  | 
|    7 #include <string> |    7 #include <string> | 
|    8  |    8  | 
|    9 #include "base/auto_reset.h" |    9 #include "base/auto_reset.h" | 
|   10 #include "base/bind.h" |   10 #include "base/bind.h" | 
|   11 #include "base/strings/string16.h" |   11 #include "base/strings/string16.h" | 
|   12 #include "base/strings/stringprintf.h" |   12 #include "base/strings/stringprintf.h" | 
|   13 #include "base/strings/utf_string_conversions.h" |   13 #include "base/strings/utf_string_conversions.h" | 
|   14 #include "base/time/time.h" |   14 #include "base/time/time.h" | 
|   15 #include "base/values.h" |   15 #include "base/values.h" | 
|   16 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |  | 
|   17 #include "chrome/browser/autocomplete/autocomplete_controller.h" |  | 
|   18 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |   16 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 
|   19 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |   17 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 
|   20 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |   18 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 
|   21 #include "chrome/browser/history/history_service_factory.h" |   19 #include "chrome/browser/history/history_service_factory.h" | 
|   22 #include "chrome/browser/search/search.h" |   20 #include "chrome/browser/search/search.h" | 
|   23 #include "chrome/browser/search_engines/template_url_service_factory.h" |   21 #include "chrome/browser/search_engines/template_url_service_factory.h" | 
|   24 #include "components/bookmarks/browser/bookmark_model.h" |   22 #include "components/bookmarks/browser/bookmark_model.h" | 
|   25 #include "components/history/core/browser/history_service.h" |   23 #include "components/history/core/browser/history_service.h" | 
|   26 #include "components/history/core/browser/url_database.h" |   24 #include "components/history/core/browser/url_database.h" | 
|   27 #include "components/metrics/proto/omnibox_event.pb.h" |   25 #include "components/metrics/proto/omnibox_event.pb.h" | 
 |   26 #include "components/omnibox/autocomplete_classifier.h" | 
 |   27 #include "components/omnibox/autocomplete_controller.h" | 
|   28 #include "components/omnibox/autocomplete_match.h" |   28 #include "components/omnibox/autocomplete_match.h" | 
|   29 #include "components/omnibox/autocomplete_provider.h" |   29 #include "components/omnibox/autocomplete_provider.h" | 
|   30 #include "components/search_engines/template_url.h" |   30 #include "components/search_engines/template_url.h" | 
|   31 #include "content/public/browser/web_ui.h" |   31 #include "content/public/browser/web_ui.h" | 
|   32 #include "mojo/common/common_type_converters.h" |   32 #include "mojo/common/common_type_converters.h" | 
|   33  |   33  | 
|   34 using bookmarks::BookmarkModel; |   34 using bookmarks::BookmarkModel; | 
|   35  |   35  | 
|   36 namespace mojo { |   36 namespace mojo { | 
|   37  |   37  | 
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  200       prevent_inline_autocomplete, prefer_keyword, true, true, false, |  200       prevent_inline_autocomplete, prefer_keyword, true, true, false, | 
|  201       ChromeAutocompleteSchemeClassifier(profile_)); |  201       ChromeAutocompleteSchemeClassifier(profile_)); | 
|  202   controller_->Start(input_); |  202   controller_->Start(input_); | 
|  203 } |  203 } | 
|  204  |  204  | 
|  205 void OmniboxUIHandler::ResetController() { |  205 void OmniboxUIHandler::ResetController() { | 
|  206   controller_.reset(new AutocompleteController( |  206   controller_.reset(new AutocompleteController( | 
|  207       make_scoped_ptr(new ChromeAutocompleteProviderClient(profile_)), this, |  207       make_scoped_ptr(new ChromeAutocompleteProviderClient(profile_)), this, | 
|  208       AutocompleteClassifier::kDefaultOmniboxProviders)); |  208       AutocompleteClassifier::kDefaultOmniboxProviders)); | 
|  209 } |  209 } | 
| OLD | NEW |