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 // This class contains common functionality for search-based autocomplete | 5 // This class contains common functionality for search-based autocomplete |
6 // providers. Search provider and zero suggest provider both use it for common | 6 // providers. Search provider and zero suggest provider both use it for common |
7 // functionality. | 7 // functionality. |
8 | 8 |
9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
10 #define CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 10 #define CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "components/autocomplete/autocomplete_input.h" | |
20 #include "components/autocomplete/autocomplete_match.h" | |
21 #include "components/autocomplete/autocomplete_provider.h" | |
22 #include "components/autocomplete/search_suggestion_parser.h" | |
23 #include "components/metrics/proto/omnibox_event.pb.h" | 19 #include "components/metrics/proto/omnibox_event.pb.h" |
| 20 #include "components/omnibox/autocomplete_input.h" |
| 21 #include "components/omnibox/autocomplete_match.h" |
| 22 #include "components/omnibox/autocomplete_provider.h" |
| 23 #include "components/omnibox/search_suggestion_parser.h" |
24 #include "net/url_request/url_fetcher_delegate.h" | 24 #include "net/url_request/url_fetcher_delegate.h" |
25 | 25 |
26 class AutocompleteProviderListener; | 26 class AutocompleteProviderListener; |
27 class GURL; | 27 class GURL; |
28 class Profile; | 28 class Profile; |
29 class SearchTermsData; | 29 class SearchTermsData; |
30 class SuggestionDeletionHandler; | 30 class SuggestionDeletionHandler; |
31 class TemplateURL; | 31 class TemplateURL; |
32 class TemplateURLService; | 32 class TemplateURLService; |
33 | 33 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 289 |
290 // Each deletion handler in this vector corresponds to an outstanding request | 290 // Each deletion handler in this vector corresponds to an outstanding request |
291 // that a server delete a personalized suggestion. Making this a ScopedVector | 291 // that a server delete a personalized suggestion. Making this a ScopedVector |
292 // causes us to auto-cancel all such requests on shutdown. | 292 // causes us to auto-cancel all such requests on shutdown. |
293 SuggestionDeletionHandlers deletion_handlers_; | 293 SuggestionDeletionHandlers deletion_handlers_; |
294 | 294 |
295 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); | 295 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); |
296 }; | 296 }; |
297 | 297 |
298 #endif // CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 298 #endif // CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
OLD | NEW |