| 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 COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/omnibox/browser/autocomplete_provider.h" | 12 #include "components/omnibox/browser/autocomplete_provider.h" |
| 13 #include "components/omnibox/browser/autocomplete_provider_client.h" | 13 #include "components/omnibox/browser/autocomplete_provider_client.h" |
| 14 #include "components/omnibox/browser/in_memory_url_index_types.h" | 14 #include "components/omnibox/browser/in_memory_url_index_types.h" |
| 15 | 15 |
| 16 class AutocompleteInput; | 16 class AutocompleteInput; |
| 17 class Profile; | |
| 18 struct AutocompleteMatch; | 17 struct AutocompleteMatch; |
| 19 | 18 |
| 20 // This class is a base class for the history autocomplete providers and | 19 // This class is a base class for the history autocomplete providers and |
| 21 // provides functions useful to all derived classes. | 20 // provides functions useful to all derived classes. |
| 22 class HistoryProvider : public AutocompleteProvider { | 21 class HistoryProvider : public AutocompleteProvider { |
| 23 public: | 22 public: |
| 24 void DeleteMatch(const AutocompleteMatch& match) override; | 23 void DeleteMatch(const AutocompleteMatch& match) override; |
| 25 | 24 |
| 26 // Returns true if inline autocompletion should be prevented for URL-like | 25 // Returns true if inline autocompletion should be prevented for URL-like |
| 27 // input. This method returns true if input.prevent_inline_autocomplete() | 26 // input. This method returns true if input.prevent_inline_autocomplete() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 | 45 |
| 47 AutocompleteProviderClient* client() { return client_; } | 46 AutocompleteProviderClient* client() { return client_; } |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 AutocompleteProviderClient* client_; | 49 AutocompleteProviderClient* client_; |
| 51 | 50 |
| 52 DISALLOW_COPY_AND_ASSIGN(HistoryProvider); | 51 DISALLOW_COPY_AND_ASSIGN(HistoryProvider); |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ | 54 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_PROVIDER_H_ |
| OLD | NEW |