// Copyright 2016 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_TRANSLATE_CORE_BROWSER_TRANSLATE_RANKER_H_ #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_RANKER_H_ #include <memory> #include <vector> #include "components/keyed_service/core/keyed_service.h" #include "services/metrics/public/cpp/ukm_source_id.h" namespace metrics { class TranslateEventProto; } // namespace metrics namespace translate { class TranslateMetricsLogger; // If enabled, downloads a translate ranker model and uses it to determine // whether the user should be given a translation prompt or not. class TranslateRanker : public KeyedService { … }; } // namespace translate #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_RANKER_H_