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

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

Issue 959343004: Move InMemoryURLIndex outside of history namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@in-memory-url-index
Patch Set: Created 5 years, 9 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
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/in_memory_url_index_types.h" 9 #include "chrome/browser/autocomplete/in_memory_url_index_types.h"
10 #include "components/omnibox/autocomplete_provider.h" 10 #include "components/omnibox/autocomplete_provider.h"
(...skipping 16 matching lines...) Expand all
27 protected: 27 protected:
28 HistoryProvider(Profile* profile, AutocompleteProvider::Type type); 28 HistoryProvider(Profile* profile, AutocompleteProvider::Type type);
29 ~HistoryProvider() override; 29 ~HistoryProvider() override;
30 30
31 // Finds and removes the match from the current collection of matches and 31 // Finds and removes the match from the current collection of matches and
32 // backing data. 32 // backing data.
33 void DeleteMatchFromMatches(const AutocompleteMatch& match); 33 void DeleteMatchFromMatches(const AutocompleteMatch& match);
34 34
35 // Fill and return an ACMatchClassifications structure given the |matches| 35 // Fill and return an ACMatchClassifications structure given the |matches|
36 // to highlight. 36 // to highlight.
37 static ACMatchClassifications SpansFromTermMatch( 37 static ACMatchClassifications SpansFromTermMatch(const TermMatches& matches,
38 const history::TermMatches& matches, 38 size_t text_length,
39 size_t text_length, 39 bool is_url);
40 bool is_url);
41 40
42 Profile* profile_; 41 Profile* profile_;
43 }; 42 };
44 43
45 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_ 44 #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/autocomplete/history_url_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698