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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 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_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
(...skipping 10 matching lines...) Expand all
21 } // namespace history 21 } // namespace history
22 22
23 // This class is an autocomplete provider (a pseudo-internal component of 23 // This class is an autocomplete provider (a pseudo-internal component of
24 // the history system) which quickly (and synchronously) provides matching 24 // the history system) which quickly (and synchronously) provides matching
25 // results from recently or frequently visited sites in the profile's 25 // results from recently or frequently visited sites in the profile's
26 // history. 26 // history.
27 class HistoryQuickProvider : public HistoryProvider { 27 class HistoryQuickProvider : public HistoryProvider {
28 public: 28 public:
29 HistoryQuickProvider(ACProviderListener* listener, Profile* profile); 29 HistoryQuickProvider(ACProviderListener* listener, Profile* profile);
30 30
31 ~HistoryQuickProvider(); 31 virtual ~HistoryQuickProvider();
32 32
33 // AutocompleteProvider. |minimal_changes| is ignored since there 33 // AutocompleteProvider. |minimal_changes| is ignored since there
34 // is no asynch completion performed. 34 // is no asynch completion performed.
35 virtual void Start(const AutocompleteInput& input, 35 virtual void Start(const AutocompleteInput& input,
36 bool minimal_changes) OVERRIDE; 36 bool minimal_changes) OVERRIDE;
37 37
38 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; 38 virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
39 39
40 // Performs the autocomplete matching and scoring. 40 // Performs the autocomplete matching and scoring.
41 void DoAutocomplete(); 41 void DoAutocomplete();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Only for use in unittests. Takes ownership of |index|. 74 // Only for use in unittests. Takes ownership of |index|.
75 void SetIndexForTesting(history::InMemoryURLIndex* index); 75 void SetIndexForTesting(history::InMemoryURLIndex* index);
76 AutocompleteInput autocomplete_input_; 76 AutocompleteInput autocomplete_input_;
77 std::string languages_; 77 std::string languages_;
78 78
79 // Only used for testing. 79 // Only used for testing.
80 scoped_ptr<history::InMemoryURLIndex> index_for_testing_; 80 scoped_ptr<history::InMemoryURLIndex> index_for_testing_;
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_ 83 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_QUICK_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_contents_provider.h ('k') | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698