| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
| 10 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" | 10 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override; | 33 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override; |
| 34 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override; | 34 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override; |
| 35 scoped_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( | 35 scoped_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( |
| 36 KeywordProvider* keyword_provider) override; | 36 KeywordProvider* keyword_provider) override; |
| 37 std::string GetAcceptLanguages() const override; | 37 std::string GetAcceptLanguages() const override; |
| 38 std::string GetEmbedderRepresentationOfAboutScheme() override; | 38 std::string GetEmbedderRepresentationOfAboutScheme() override; |
| 39 std::vector<base::string16> GetBuiltinURLs() override; | 39 std::vector<base::string16> GetBuiltinURLs() override; |
| 40 std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() override; | 40 std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() override; |
| 41 bool IsOffTheRecord() const override; | 41 bool IsOffTheRecord() const override; |
| 42 bool SearchSuggestEnabled() const override; | 42 bool SearchSuggestEnabled() const override; |
| 43 bool BookmarkBarIsVisible() const override; | |
| 44 bool TabSyncEnabledAndUnencrypted() const override; | 43 bool TabSyncEnabledAndUnencrypted() const override; |
| 45 void Classify( | 44 void Classify( |
| 46 const base::string16& text, | 45 const base::string16& text, |
| 47 bool prefer_keyword, | 46 bool prefer_keyword, |
| 48 bool allow_exact_keyword_match, | 47 bool allow_exact_keyword_match, |
| 49 metrics::OmniboxEventProto::PageClassification page_classification, | 48 metrics::OmniboxEventProto::PageClassification page_classification, |
| 50 AutocompleteMatch* match, | 49 AutocompleteMatch* match, |
| 51 GURL* alternate_nav_url) override; | 50 GURL* alternate_nav_url) override; |
| 52 void DeleteMatchingURLsForKeywordFromHistory( | 51 void DeleteMatchingURLsForKeywordFromHistory( |
| 53 history::KeywordID keyword_id, | 52 history::KeywordID keyword_id, |
| 54 const base::string16& term) override; | 53 const base::string16& term) override; |
| 55 void PrefetchImage(const GURL& url) override; | 54 void PrefetchImage(const GURL& url) override; |
| 56 void OnAutocompleteControllerResultReady( | 55 void OnAutocompleteControllerResultReady( |
| 57 AutocompleteController* controller) override; | 56 AutocompleteController* controller) override; |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 Profile* profile_; | 59 Profile* profile_; |
| 61 ChromeAutocompleteSchemeClassifier scheme_classifier_; | 60 ChromeAutocompleteSchemeClassifier scheme_classifier_; |
| 62 UIThreadSearchTermsData search_terms_data_; | 61 UIThreadSearchTermsData search_terms_data_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient); | 63 DISALLOW_COPY_AND_ASSIGN(ChromeAutocompleteProviderClient); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 66 #endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| OLD | NEW |