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

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

Issue 10541045: Move ScoredHistoryMatch into Its Own Set of Files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_QUICK_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/autocomplete/autocomplete_match.h" 11 #include "chrome/browser/autocomplete/autocomplete_match.h"
12 #include "chrome/browser/autocomplete/history_provider.h" 12 #include "chrome/browser/autocomplete/history_provider.h"
13 #include "chrome/browser/history/history_types.h" 13 #include "chrome/browser/history/history_types.h"
14 #include "chrome/browser/history/in_memory_url_index.h" 14 #include "chrome/browser/history/in_memory_url_index.h"
15 15
16 class Profile; 16 class Profile;
17 class TermMatches; 17 class TermMatches;
18 18
19 namespace history {
20 struct ScoredHistoryMatch;
21 } // namespace history
22
19 // This class is an autocomplete provider (a pseudo-internal component of 23 // This class is an autocomplete provider (a pseudo-internal component of
20 // the history system) which quickly (and synchronously) provides matching 24 // the history system) which quickly (and synchronously) provides matching
21 // results from recently or frequently visited sites in the profile's 25 // results from recently or frequently visited sites in the profile's
22 // history. 26 // history.
23 class HistoryQuickProvider : public HistoryProvider { 27 class HistoryQuickProvider : public HistoryProvider {
24 public: 28 public:
25 HistoryQuickProvider(ACProviderListener* listener, Profile* profile); 29 HistoryQuickProvider(ACProviderListener* listener, Profile* profile);
26 30
27 // AutocompleteProvider. |minimal_changes| is ignored since there 31 // AutocompleteProvider. |minimal_changes| is ignored since there
28 // is no asynch completion performed. 32 // is no asynch completion performed.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 std::string languages_; 77 std::string languages_;
74 78
75 // Only used for testing. 79 // Only used for testing.
76 scoped_ptr<history::InMemoryURLIndex> index_for_testing_; 80 scoped_ptr<history::InMemoryURLIndex> index_for_testing_;
77 81
78 // This provider is disabled when true. 82 // This provider is disabled when true.
79 static bool disabled_; 83 static bool disabled_;
80 }; 84 };
81 85
82 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ 86 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_quick_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698