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
3 # found in the LICENSE file.
5 import("//third_party/protobuf/proto_library.gni")
7 source_set("browser") {
11 "autocomplete_classifier.cc",
12 "autocomplete_classifier.h",
13 "autocomplete_controller.cc",
14 "autocomplete_controller.h",
15 "autocomplete_controller_delegate.h",
16 "autocomplete_input.cc",
17 "autocomplete_input.h",
18 "autocomplete_match.cc",
19 "autocomplete_match.h",
20 "autocomplete_match_type.cc",
21 "autocomplete_match_type.h",
22 "autocomplete_provider.cc",
23 "autocomplete_provider.h",
24 "autocomplete_result.cc",
25 "autocomplete_result.h",
26 "autocomplete_scheme_classifier.h",
27 "base_search_provider.cc",
28 "base_search_provider.h",
29 "bookmark_provider.cc",
30 "bookmark_provider.h",
31 "builtin_provider.cc",
33 "clipboard_url_provider.cc",
34 "clipboard_url_provider.h",
35 "history_provider.cc",
37 "history_quick_provider.cc",
38 "history_quick_provider.h",
39 "history_url_provider.cc",
40 "history_url_provider.h",
41 "in_memory_url_index.cc",
42 "in_memory_url_index.h",
43 "in_memory_url_index_types.cc",
44 "in_memory_url_index_types.h",
45 "keyword_extensions_delegate.cc",
46 "keyword_extensions_delegate.h",
47 "keyword_provider.cc",
50 "omnibox_controller.cc",
51 "omnibox_controller.h",
52 "omnibox_edit_controller.cc",
53 "omnibox_edit_controller.h",
54 "omnibox_edit_model.cc",
55 "omnibox_edit_model.h",
56 "omnibox_event_global_tracker.cc",
57 "omnibox_event_global_tracker.h",
58 "omnibox_field_trial.cc",
59 "omnibox_field_trial.h",
62 "omnibox_metrics_provider.cc",
63 "omnibox_metrics_provider.h",
64 "omnibox_navigation_observer.h",
65 "omnibox_popup_model.cc",
66 "omnibox_popup_model.h",
67 "omnibox_popup_model_observer.h",
68 "omnibox_popup_view.h",
69 "omnibox_pref_names.cc",
70 "omnibox_pref_names.h",
71 "omnibox_switches.cc",
75 "scored_history_match.cc",
76 "scored_history_match.h",
79 "search_suggestion_parser.cc",
80 "search_suggestion_parser.h",
81 "shortcuts_backend.cc",
82 "shortcuts_backend.h",
83 "shortcuts_constants.cc",
84 "shortcuts_constants.h",
85 "shortcuts_database.cc",
86 "shortcuts_database.h",
87 "shortcuts_provider.cc",
88 "shortcuts_provider.h",
89 "suggestion_answer.cc",
90 "suggestion_answer.h",
91 "url_index_private_data.cc",
92 "url_index_private_data.h",
97 "zero_suggest_provider.cc",
98 "zero_suggest_provider.h",
102 "//components/history/core/browser",
103 "//components/metrics/proto",
109 "//components/bookmarks/browser",
110 "//components/crash_keys", # TODO(mpearson): remove once 464926 is fixed.
111 "//components/keyed_service/core",
112 "//components/metrics",
113 "//components/omnibox/common",
114 "//components/open_from_clipboard",
115 "//components/pref_registry",
116 "//components/query_parser",
117 "//components/resources",
118 "//components/search",
119 "//components/search_engines",
120 "//components/sessions",
121 "//components/strings",
122 "//components/toolbar",
123 "//components/url_formatter",
124 "//components/variations",
125 "//components/variations/net",
129 "//third_party/protobuf:protobuf_lite",
133 ":in_memory_url_index_cache_proto",
137 proto_library("in_memory_url_index_cache_proto") {
139 "in_memory_url_index_cache.proto",
143 static_library("test_support") {
146 "mock_autocomplete_provider_client.cc",
147 "mock_autocomplete_provider_client.h",
148 "test_scheme_classifier.cc",
149 "test_scheme_classifier.h",
155 "//components/metrics/proto",
156 "//components/search_engines",
162 source_set("unit_tests") {
165 "answers_cache_unittest.cc",
166 "autocomplete_input_unittest.cc",
167 "autocomplete_match_unittest.cc",
168 "autocomplete_result_unittest.cc",
169 "base_search_provider_unittest.cc",
170 "clipboard_url_provider_unittest.cc",
171 "in_memory_url_index_types_unittest.cc",
172 "keyword_provider_unittest.cc",
173 "omnibox_field_trial_unittest.cc",
174 "omnibox_popup_model_unittest.cc",
175 "omnibox_view_unittest.cc",
176 "scored_history_match_unittest.cc",
177 "suggestion_answer_unittest.cc",
182 "//components/open_from_clipboard:test_support",
183 "//components/search",
184 "//components/search_engines",
185 "//components/variations",