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

Unified Diff: chrome/browser/autocomplete/history_quick_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, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/history_quick_provider.h
diff --git a/chrome/browser/autocomplete/history_quick_provider.h b/chrome/browser/autocomplete/history_quick_provider.h
index aadbd602868d22c4401c706842d95e2decbe19a3..d0ce790a8a6af03563c39a64ee43a0de7fcd410e 100644
--- a/chrome/browser/autocomplete/history_quick_provider.h
+++ b/chrome/browser/autocomplete/history_quick_provider.h
@@ -16,10 +16,7 @@
#include "components/omnibox/autocomplete_match.h"
class Profile;
-
-namespace history {
struct ScoredHistoryMatch;
-}
// This class is an autocomplete provider (a pseudo-internal component of
// the history system) which quickly (and synchronously) provides matching
@@ -54,23 +51,20 @@ class HistoryQuickProvider : public HistoryProvider {
// Creates an AutocompleteMatch from |history_match|, assigning it
// the score |score|.
- AutocompleteMatch QuickMatchToACMatch(
- const history::ScoredHistoryMatch& history_match,
- int score);
+ AutocompleteMatch QuickMatchToACMatch(const ScoredHistoryMatch& history_match,
+ int score);
// Returns the index that should be used for history lookups.
- history::InMemoryURLIndex* GetIndex();
+ InMemoryURLIndex* GetIndex();
// Only for use in unittests. Takes ownership of |index|.
- void set_index(history::InMemoryURLIndex* index) {
- index_for_testing_.reset(index);
- }
+ void set_index(InMemoryURLIndex* index) { index_for_testing_.reset(index); }
AutocompleteInput autocomplete_input_;
std::string languages_;
// Only used for testing.
- scoped_ptr<history::InMemoryURLIndex> index_for_testing_;
+ scoped_ptr<InMemoryURLIndex> index_for_testing_;
// This provider is disabled when true.
static bool disabled_;

Powered by Google App Engine
This is Rietveld 408576698