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