// Copyright 2019 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_FAVICON_CORE_HISTORY_UI_FAVICON_REQUEST_HANDLER_H_ #define COMPONENTS_FAVICON_CORE_HISTORY_UI_FAVICON_REQUEST_HANDLER_H_ #include "components/favicon_base/favicon_callback.h" #include "components/keyed_service/core/keyed_service.h" #include "url/gurl.h" namespace favicon { // The UI origin of an icon request. Used to do metrics recording per UI. enum class HistoryUiFaviconRequestOrigin { … }; // Keyed service for handling favicon requests made by a history UI, forwarding // them to local storage or Google server accordingly. This service should // only be used by the UIs listed in the HistoryUiFaviconRequestOrigin enum. // Requests must be made by page url, as opposed to icon url. class HistoryUiFaviconRequestHandler : public KeyedService { … }; } // namespace favicon #endif // COMPONENTS_FAVICON_CORE_HISTORY_UI_FAVICON_REQUEST_HANDLER_H_