OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/android/omnibox/autocomplete_controller_android.h" | 5 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/omnibox/omnibox_field_trial.h" | 23 #include "chrome/browser/omnibox/omnibox_field_trial.h" |
24 #include "chrome/browser/omnibox/omnibox_log.h" | 24 #include "chrome/browser/omnibox/omnibox_log.h" |
25 #include "chrome/browser/profiles/incognito_helpers.h" | 25 #include "chrome/browser/profiles/incognito_helpers.h" |
26 #include "chrome/browser/profiles/profile_android.h" | 26 #include "chrome/browser/profiles/profile_android.h" |
27 #include "chrome/browser/profiles/profile_manager.h" | 27 #include "chrome/browser/profiles/profile_manager.h" |
28 #include "chrome/browser/search/search.h" | 28 #include "chrome/browser/search/search.h" |
29 #include "chrome/browser/search_engines/template_url_service_factory.h" | 29 #include "chrome/browser/search_engines/template_url_service_factory.h" |
30 #include "chrome/browser/sessions/session_id.h" | 30 #include "chrome/browser/sessions/session_id.h" |
31 #include "chrome/browser/ui/search/instant_search_prerenderer.h" | 31 #include "chrome/browser/ui/search/instant_search_prerenderer.h" |
32 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 32 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
33 #include "chrome/common/autocomplete_match_type.h" | |
34 #include "chrome/common/instant_types.h" | 33 #include "chrome/common/instant_types.h" |
35 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
36 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
37 #include "components/autocomplete/autocomplete_input.h" | 36 #include "components/autocomplete/autocomplete_input.h" |
| 37 #include "components/autocomplete/autocomplete_match_type.h" |
38 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 38 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
39 #include "components/metrics/proto/omnibox_event.pb.h" | 39 #include "components/metrics/proto/omnibox_event.pb.h" |
40 #include "components/search_engines/template_url_service.h" | 40 #include "components/search_engines/template_url_service.h" |
41 #include "content/public/browser/notification_details.h" | 41 #include "content/public/browser/notification_details.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
43 #include "content/public/browser/notification_source.h" | 43 #include "content/public/browser/notification_source.h" |
44 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
45 #include "content/public/common/url_constants.h" | 45 #include "content/public/common/url_constants.h" |
46 #include "jni/AutocompleteController_jni.h" | 46 #include "jni/AutocompleteController_jni.h" |
47 #include "net/base/escape.h" | 47 #include "net/base/escape.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 return; | 549 return; |
550 | 550 |
551 // ZeroSuggestPrefetcher deletes itself after it's done prefetching. | 551 // ZeroSuggestPrefetcher deletes itself after it's done prefetching. |
552 new ZeroSuggestPrefetcher(profile); | 552 new ZeroSuggestPrefetcher(profile); |
553 } | 553 } |
554 | 554 |
555 // Register native methods | 555 // Register native methods |
556 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) { | 556 bool RegisterAutocompleteControllerAndroid(JNIEnv* env) { |
557 return RegisterNativesImpl(env); | 557 return RegisterNativesImpl(env); |
558 } | 558 } |
OLD | NEW |