1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SEARCH_SEARCH_H_
6 #define COMPONENTS_SEARCH_SEARCH_H_
8 class TemplateURLService;
10 class SearchTermsData;
14 // Returns whether the Instant Extended API is enabled. This is always true on
15 // desktop and false on mobile.
16 bool IsInstantExtendedAPIEnabled();
18 // Returns whether Google is selected as the default search engine.
19 bool DefaultSearchProviderIsGoogle(
20 const TemplateURLService* template_url_service);
22 // Returns whether supplied template URL is Google template URL.
23 bool TemplateURLIsGoogle(const TemplateURL* template_url,
24 const SearchTermsData& search_terms_data);
27 #endif // COMPONENTS_SEARCH_SEARCH_H_