| 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 COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // The set of URLs to provide as autocomplete suggestions as the user types a | 79 // The set of URLs to provide as autocomplete suggestions as the user types a |
| 80 // prefix of the |about| scheme or the embedder's representation of that | 80 // prefix of the |about| scheme or the embedder's representation of that |
| 81 // scheme. Note that this may be a subset of GetBuiltinURLs(), e.g., only the | 81 // scheme. Note that this may be a subset of GetBuiltinURLs(), e.g., only the |
| 82 // most commonly-used URLs from that set. | 82 // most commonly-used URLs from that set. |
| 83 virtual std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() = 0; | 83 virtual std::vector<base::string16> GetBuiltinsToProvideAsUserTypes() = 0; |
| 84 | 84 |
| 85 virtual bool IsOffTheRecord() const = 0; | 85 virtual bool IsOffTheRecord() const = 0; |
| 86 virtual bool SearchSuggestEnabled() const = 0; | 86 virtual bool SearchSuggestEnabled() const = 0; |
| 87 | 87 |
| 88 // Returns whether the bookmark bar is visible on all tabs. | |
| 89 virtual bool BookmarkBarIsVisible() const = 0; | |
| 90 | |
| 91 virtual bool TabSyncEnabledAndUnencrypted() const = 0; | 88 virtual bool TabSyncEnabledAndUnencrypted() const = 0; |
| 92 | 89 |
| 93 // Given some string |text| that the user wants to use for navigation, | 90 // Given some string |text| that the user wants to use for navigation, |
| 94 // determines how it should be interpreted. | 91 // determines how it should be interpreted. |
| 95 virtual void Classify( | 92 virtual void Classify( |
| 96 const base::string16& text, | 93 const base::string16& text, |
| 97 bool prefer_keyword, | 94 bool prefer_keyword, |
| 98 bool allow_exact_keyword_match, | 95 bool allow_exact_keyword_match, |
| 99 metrics::OmniboxEventProto::PageClassification page_classification, | 96 metrics::OmniboxEventProto::PageClassification page_classification, |
| 100 AutocompleteMatch* match, | 97 AutocompleteMatch* match, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 117 // listeners add themselves to, and then kill this method. | 114 // listeners add themselves to, and then kill this method. |
| 118 virtual void OnAutocompleteControllerResultReady( | 115 virtual void OnAutocompleteControllerResultReady( |
| 119 AutocompleteController* controller) {} | 116 AutocompleteController* controller) {} |
| 120 | 117 |
| 121 // Called after creation of |keyword_provider| to allow the client to | 118 // Called after creation of |keyword_provider| to allow the client to |
| 122 // configure the provider if desired. | 119 // configure the provider if desired. |
| 123 virtual void ConfigureKeywordProvider(KeywordProvider* keyword_provider) {} | 120 virtual void ConfigureKeywordProvider(KeywordProvider* keyword_provider) {} |
| 124 }; | 121 }; |
| 125 | 122 |
| 126 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 123 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| OLD | NEW |