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 "components/omnibox/autocomplete_provider_client.h"
13 class ChromeAutocompleteProviderClient
: public AutocompleteProviderClient
{
15 explicit ChromeAutocompleteProviderClient(Profile
* profile
);
16 ~ChromeAutocompleteProviderClient() override
;
18 // AutocompleteProviderClient:
19 net::URLRequestContextGetter
* RequestContext() override
;
20 bool IsOffTheRecord() override
;
21 std::string
AcceptLanguages() override
;
22 bool SearchSuggestEnabled() override
;
23 bool ShowBookmarkBar() override
;
24 const AutocompleteSchemeClassifier
& SchemeClassifier() override
;
26 const base::string16
& text
,
28 bool allow_exact_keyword_match
,
29 metrics::OmniboxEventProto::PageClassification page_classification
,
30 AutocompleteMatch
* match
,
31 GURL
* alternate_nav_url
) override
;
32 history::URLDatabase
* InMemoryDatabase() override
;
33 void DeleteMatchingURLsForKeywordFromHistory(
34 history::KeywordID keyword_id
,
35 const base::string16
& term
) override
;
36 bool TabSyncEnabledAndUnencrypted() override
;
37 void PrefetchImage(const GURL
& url
) override
;
41 ChromeAutocompleteSchemeClassifier scheme_classifier_
;
43 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient
);
46 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_