| 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_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_H_ |
| 6 #define COMPONENTS_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "components/autocomplete/autocomplete_match.h" | |
| 12 #include "components/metrics/proto/omnibox_event.pb.h" | 11 #include "components/metrics/proto/omnibox_event.pb.h" |
| 12 #include "components/omnibox/autocomplete_match.h" |
| 13 | 13 |
| 14 class AutocompleteInput; | 14 class AutocompleteInput; |
| 15 | 15 |
| 16 typedef std::vector<metrics::OmniboxEventProto_ProviderInfo> ProvidersInfo; | 16 typedef std::vector<metrics::OmniboxEventProto_ProviderInfo> ProvidersInfo; |
| 17 | 17 |
| 18 // The AutocompleteProviders each return different kinds of matches, | 18 // The AutocompleteProviders each return different kinds of matches, |
| 19 // such as history or search matches. These matches are given | 19 // such as history or search matches. These matches are given |
| 20 // "relevance" scores. Higher scores are better matches than lower | 20 // "relevance" scores. Higher scores are better matches than lower |
| 21 // scores. The relevance scores and classes providing the respective | 21 // scores. The relevance scores and classes providing the respective |
| 22 // matches are as listed below. | 22 // matches are as listed below. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 ACMatches matches_; | 239 ACMatches matches_; |
| 240 bool done_; | 240 bool done_; |
| 241 | 241 |
| 242 Type type_; | 242 Type type_; |
| 243 | 243 |
| 244 private: | 244 private: |
| 245 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider); | 245 DISALLOW_COPY_AND_ASSIGN(AutocompleteProvider); |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 #endif // COMPONENTS_AUTOCOMPLETE_AUTOCOMPLETE_PROVIDER_H_ | 248 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_H_ |
| OLD | NEW |