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

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

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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_SHORTCUTS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/browser/autocomplete/autocomplete_match.h" 16 #include "chrome/browser/autocomplete/autocomplete_match.h"
17 #include "chrome/browser/autocomplete/history_provider.h" 17 #include "chrome/browser/autocomplete/history_provider.h"
18 #include "chrome/browser/autocomplete/shortcuts_provider_shortcut.h" 18 #include "chrome/browser/autocomplete/shortcuts_provider_shortcut.h"
19 #include "chrome/browser/history/shortcuts_backend.h" 19 #include "chrome/browser/history/shortcuts_backend.h"
20 20
21 class Profile; 21 class Profile;
22 struct AutocompleteLog;
23 22
24 // Provider of recently autocompleted links. Provides autocomplete suggestions 23 // Provider of recently autocompleted links. Provides autocomplete suggestions
25 // from previously selected suggestions. The more often a user selects a 24 // from previously selected suggestions. The more often a user selects a
26 // suggestion for a given search term the higher will be that suggestion's 25 // suggestion for a given search term the higher will be that suggestion's
27 // ranking for future uses of that search term. 26 // ranking for future uses of that search term.
28 class ShortcutsProvider 27 class ShortcutsProvider
29 : public AutocompleteProvider, 28 : public AutocompleteProvider,
30 public history::ShortcutsBackend::ShortcutsBackendObserver { 29 public history::ShortcutsBackend::ShortcutsBackendObserver {
31 public: 30 public:
32 ShortcutsProvider(ACProviderListener* listener, Profile* profile); 31 ShortcutsProvider(ACProviderListener* listener, Profile* profile);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // For unit-test only. 89 // For unit-test only.
91 void set_shortcuts_backend(history::ShortcutsBackend* shortcuts_backend); 90 void set_shortcuts_backend(history::ShortcutsBackend* shortcuts_backend);
92 91
93 std::string languages_; 92 std::string languages_;
94 bool initialized_; 93 bool initialized_;
95 94
96 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 95 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
97 }; 96 };
98 97
99 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ 98 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.h ('k') | chrome/browser/content_settings/content_settings_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698