| 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" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // NOTE: For a view-source: URL, this will trim from after "view-source:" and | 39 // NOTE: For a view-source: URL, this will trim from after "view-source:" and |
| 40 // return 0. | 40 // return 0. |
| 41 static size_t TrimHttpPrefix(string16* url); | 41 static size_t TrimHttpPrefix(string16* url); |
| 42 | 42 |
| 43 // Returns true if inline autocompletion should be prevented. Use this instead | 43 // Returns true if inline autocompletion should be prevented. Use this instead |
| 44 // of |input.prevent_inline_autocomplete| if the input is passed through | 44 // of |input.prevent_inline_autocomplete| if the input is passed through |
| 45 // FixupUserInput(). This method returns true if | 45 // FixupUserInput(). This method returns true if |
| 46 // |input.prevent_inline_autocomplete()| is true, or the input text contains | 46 // |input.prevent_inline_autocomplete()| is true, or the input text contains |
| 47 // trailing whitespace. | 47 // trailing whitespace. |
| 48 bool PreventInlineAutocomplete(const AutocompleteInput& input); | 48 bool PreventInlineAutocomplete(const AutocompleteInput& input); |
| 49 | |
| 50 // Finds and removes the match from the current collection of matches and | |
| 51 // backing data. | |
| 52 void DeleteMatchFromMatches(const AutocompleteMatch& match); | |
| 53 }; | 49 }; |
| 54 | 50 |
| 55 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ | 51 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ |
| OLD | NEW |