search.h 655 B

12345678910111213141516171819202122
  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.
  4. #ifndef COMPONENTS_SEARCH_SEARCH_H_
  5. #define COMPONENTS_SEARCH_SEARCH_H_
  6. class TemplateURLService;
  7. namespace search {
  8. // Returns whether the Instant Extended API is enabled. This is always true on
  9. // desktop and false on mobile.
  10. bool IsInstantExtendedAPIEnabled();
  11. // Returns whether Google is selected as the default search engine.
  12. bool DefaultSearchProviderIsGoogle(
  13. const TemplateURLService* template_url_service);
  14. } // namespace search
  15. #endif // COMPONENTS_SEARCH_SEARCH_H_