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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "components/autocomplete/autocomplete_match.h" | |
14 #include "components/metrics/proto/omnibox_event.pb.h" | 13 #include "components/metrics/proto/omnibox_event.pb.h" |
| 14 #include "components/omnibox/autocomplete_match.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 class AutocompleteInput; | 17 class AutocompleteInput; |
18 class AutocompleteProvider; | 18 class AutocompleteProvider; |
19 class TemplateURLService; | 19 class TemplateURLService; |
20 | 20 |
21 // All matches from all providers for a particular query. This also tracks | 21 // All matches from all providers for a particular query. This also tracks |
22 // what the default match should be if the user doesn't manually select another | 22 // what the default match should be if the user doesn't manually select another |
23 // match. | 23 // match. |
24 class AutocompleteResult { | 24 class AutocompleteResult { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // user's local intranet contains site "foo", and the user types "foo", we | 196 // user's local intranet contains site "foo", and the user types "foo", we |
197 // default to searching for "foo" when the user may have meant to navigate | 197 // default to searching for "foo" when the user may have meant to navigate |
198 // there. In cases like this, the default match will point to the "search for | 198 // there. In cases like this, the default match will point to the "search for |
199 // 'foo'" result, and this will contain "http://foo/". | 199 // 'foo'" result, and this will contain "http://foo/". |
200 GURL alternate_nav_url_; | 200 GURL alternate_nav_url_; |
201 | 201 |
202 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult); | 202 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult); |
203 }; | 203 }; |
204 | 204 |
205 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ | 205 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_H_ |
OLD | NEW |