search_engine_utils.h 665 B

1234567891011121314151617181920
  1. // Copyright 2020 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_ENGINES_SEARCH_ENGINE_UTILS_H_
  5. #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_UTILS_H_
  6. #include "components/search_engines/search_engine_type.h"
  7. class GURL;
  8. namespace SearchEngineUtils {
  9. // Takes a GURL and returns the matching enum if it matches the URL of a
  10. // well-known search engine. This may be called on any thread.
  11. SearchEngineType GetEngineType(const GURL& url);
  12. } // namespace SearchEngineUtils
  13. #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINE_UTILS_H_