| 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 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_RESULT_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_RESULT_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_RESULT_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_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/macros.h" |
| 13 #include "build/build_config.h" |
| 13 #include "components/metrics/proto/omnibox_event.pb.h" | 14 #include "components/metrics/proto/omnibox_event.pb.h" |
| 14 #include "components/omnibox/browser/autocomplete_match.h" | 15 #include "components/omnibox/browser/autocomplete_match.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 class AutocompleteInput; | 18 class AutocompleteInput; |
| 18 class AutocompleteProvider; | 19 class AutocompleteProvider; |
| 19 class TemplateURLService; | 20 class TemplateURLService; |
| 20 | 21 |
| 21 // All matches from all providers for a particular query. This also tracks | 22 // 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 | 23 // what the default match should be if the user doesn't manually select another |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // user's local intranet contains site "foo", and the user types "foo", we | 177 // user's local intranet contains site "foo", and the user types "foo", we |
| 177 // default to searching for "foo" when the user may have meant to navigate | 178 // default to searching for "foo" when the user may have meant to navigate |
| 178 // there. In cases like this, the default match will point to the "search for | 179 // there. In cases like this, the default match will point to the "search for |
| 179 // 'foo'" result, and this will contain "http://foo/". | 180 // 'foo'" result, and this will contain "http://foo/". |
| 180 GURL alternate_nav_url_; | 181 GURL alternate_nav_url_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult); | 183 DISALLOW_COPY_AND_ASSIGN(AutocompleteResult); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_RESULT_H_ | 186 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_RESULT_H_ |
| OLD | NEW |