Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / autocomplete / chrome_autocomplete_provider_client.h
blobe8b218a5a3013e2746562bd66819e2a6226fa102
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_
8 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
9 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
10 #include "components/omnibox/browser/autocomplete_provider_client.h"
12 class Profile;
14 class ChromeAutocompleteProviderClient : public AutocompleteProviderClient {
15 public:
16 explicit ChromeAutocompleteProviderClient(Profile* profile);
17 ~ChromeAutocompleteProviderClient() override;
19 // AutocompleteProviderClient:
20 net::URLRequestContextGetter* GetRequestContext() override;
21 PrefService* GetPrefs() override;
22 const AutocompleteSchemeClassifier& GetSchemeClassifier() const override;
23 AutocompleteClassifier* GetAutocompleteClassifier() override;
24 history::HistoryService* GetHistoryService() override;
25 scoped_refptr<history::TopSites> GetTopSites() override;
26 bookmarks::BookmarkModel* GetBookmarkModel() override;
27 history::URLDatabase* GetInMemoryDatabase() override;
28 InMemoryURLIndex* GetInMemoryURLIndex() override;
29 TemplateURLService* GetTemplateURLService() override;
30 const TemplateURLService* GetTemplateURLService() const override;
31 const SearchTermsData& GetSearchTermsData() const override;
32 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override;
33 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override;
34 scoped_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate(
35 KeywordProvider* keyword_provider) override;
36 std::string GetAcceptLanguages() const override;
37 std::string GetEmbedderRepresentationOfAboutScheme() override;
38 std::vector<base::string16> GetBuiltinURLs() override;
39 std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() override;
40 bool IsOffTheRecord() const override;
41 bool SearchSuggestEnabled() const override;
42 bool BookmarkBarIsVisible() const override;
43 bool TabSyncEnabledAndUnencrypted() const override;
44 void Classify(
45 const base::string16& text,
46 bool prefer_keyword,
47 bool allow_exact_keyword_match,
48 metrics::OmniboxEventProto::PageClassification page_classification,
49 AutocompleteMatch* match,
50 GURL* alternate_nav_url) override;
51 void DeleteMatchingURLsForKeywordFromHistory(
52 history::KeywordID keyword_id,
53 const base::string16& term) override;
54 void PrefetchImage(const GURL& url) override;
55 void OnAutocompleteControllerResultReady(
56 AutocompleteController* controller) override;
58 private:
59 Profile* profile_;
60 ChromeAutocompleteSchemeClassifier scheme_classifier_;
61 UIThreadSearchTermsData search_terms_data_;
63 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient);
66 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_