// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SAFE_SEARCH_API_URL_CHECKER_H_ #define COMPONENTS_SAFE_SEARCH_API_URL_CHECKER_H_ #include <list> #include <memory> #include "base/containers/lru_cache.h" #include "base/functional/callback_forward.h" #include "base/memory/weak_ptr.h" #include "base/time/time.h" #include "components/safe_search_api/url_checker_client.h" #include "url/gurl.h" namespace safe_search_api { // The SafeSearch API classification of a URL. enum class Classification { … }; // These values are sent to Uma to understand Cache utilization. Must not be // renumbered. enum class CacheAccessStatus { … }; // This class uses one implementation of URLCheckerClient to check the // classification of the content on a given URL and returns the result // asynchronously via a callback. It is also responsible for the synchronous // logic such as caching, the injected URLCheckerClient is who makes the // async request. class URLChecker { … }; } // namespace safe_search_api #endif // COMPONENTS_SAFE_SEARCH_API_URL_CHECKER_H_