| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HISTORY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/autocomplete/autocomplete.h" | 10 #include "chrome/browser/autocomplete/autocomplete.h" |
| 11 | 11 |
| 12 namespace history { | |
| 13 | |
| 14 class HistoryBackend; | |
| 15 class URLDatabase; | |
| 16 class URLRow; | |
| 17 | |
| 18 } // namespace history | |
| 19 | |
| 20 // This class is a base class for the history autocomplete providers and | 12 // This class is a base class for the history autocomplete providers and |
| 21 // provides functions useful to all derived classes. | 13 // provides functions useful to all derived classes. |
| 22 class HistoryProvider : public AutocompleteProvider { | 14 class HistoryProvider : public AutocompleteProvider { |
| 23 public: | 15 public: |
| 24 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; | 16 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; |
| 25 | 17 |
| 26 protected: | 18 protected: |
| 27 HistoryProvider(ACProviderListener* listener, | 19 HistoryProvider(ACProviderListener* listener, |
| 28 Profile* profile, | 20 Profile* profile, |
| 29 const char* name); | 21 const char* name); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 50 | 42 |
| 51 // Returns true if inline autocompletion should be prevented. Use this instead | 43 // Returns true if inline autocompletion should be prevented. Use this instead |
| 52 // of |input.prevent_inline_autocomplete| if the input is passed through | 44 // of |input.prevent_inline_autocomplete| if the input is passed through |
| 53 // FixupUserInput(). This method returns true if | 45 // FixupUserInput(). This method returns true if |
| 54 // |input.prevent_inline_autocomplete()| is true, or the input text contains | 46 // |input.prevent_inline_autocomplete()| is true, or the input text contains |
| 55 // trailing whitespace. | 47 // trailing whitespace. |
| 56 bool PreventInlineAutocomplete(const AutocompleteInput& input); | 48 bool PreventInlineAutocomplete(const AutocompleteInput& input); |
| 57 }; | 49 }; |
| 58 | 50 |
| 59 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 51 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
| OLD | NEW |