Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: chrome/browser/autocomplete/history_provider.h

Issue 10837244: Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Tweak suppression. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/autocomplete/autocomplete_provider.h" 9 #include "chrome/browser/autocomplete/autocomplete_provider.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // return 0. 43 // return 0.
44 static size_t TrimHttpPrefix(string16* url); 44 static size_t TrimHttpPrefix(string16* url);
45 45
46 // Returns true if inline autocompletion should be prevented. Use this instead 46 // Returns true if inline autocompletion should be prevented. Use this instead
47 // of |input.prevent_inline_autocomplete| if the input is passed through 47 // of |input.prevent_inline_autocomplete| if the input is passed through
48 // FixupUserInput(). This method returns true if 48 // FixupUserInput(). This method returns true if
49 // |input.prevent_inline_autocomplete()| is true, or the input text contains 49 // |input.prevent_inline_autocomplete()| is true, or the input text contains
50 // trailing whitespace, or if always_prevent_inline_autocomplete is true. 50 // trailing whitespace, or if always_prevent_inline_autocomplete is true.
51 bool PreventInlineAutocomplete(const AutocompleteInput& input); 51 bool PreventInlineAutocomplete(const AutocompleteInput& input);
52 52
53 // Finds and removes the match from the current collection of matches and
54 // backing data.
55 void DeleteMatchFromMatches(const AutocompleteMatch& match);
56
53 // If true, we always prevent inline autocompletions. 57 // If true, we always prevent inline autocompletions.
54 bool always_prevent_inline_autocomplete_; 58 bool always_prevent_inline_autocomplete_;
55 }; 59 };
56 60
57 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 61 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_provider.cc » ('j') | chrome/browser/history/url_index_private_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698