// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_TRANSLATE_PAGE_LOAD_METRICS_OBSERVER_H_ #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_TRANSLATE_PAGE_LOAD_METRICS_OBSERVER_H_ #include <memory> #include "components/page_load_metrics/browser/page_load_metrics_observer.h" namespace translate { class TranslateMetricsLogger; } // namespace translate namespace content { class NavigationHandle; } // namespace content // Observer responsible for notifying Translate of the status of a page load. // This information is used to log UKM and UMA metrics at a page load level, as // well as tracking the time a page is in the foreground and either translated // or not translated. class TranslatePageLoadMetricsObserver : public page_load_metrics::PageLoadMetricsObserver { … }; #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_TRANSLATE_PAGE_LOAD_METRICS_OBSERVER_H_