aw_metrics_service_client_delegate.h 1009 B

123456789101112131415161718192021222324252627
  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 ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_DELEGATE_H_
  5. #define ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_DELEGATE_H_
  6. #include "android_webview/browser/metrics/aw_metrics_service_client.h"
  7. namespace android_webview {
  8. // Interceptor to handle urls for media assets in the apk.
  9. class AwMetricsServiceClientDelegate : public AwMetricsServiceClient::Delegate {
  10. public:
  11. AwMetricsServiceClientDelegate();
  12. ~AwMetricsServiceClientDelegate() override;
  13. // AwMetricsServiceClient::Delegate
  14. void RegisterAdditionalMetricsProviders(
  15. metrics::MetricsService* service) override;
  16. void AddWebViewAppStateObserver(WebViewAppStateObserver* observer) override;
  17. bool HasAwContentsEverCreated() const override;
  18. };
  19. } // namespace android_webview
  20. #endif // ANDROID_WEBVIEW_BROWSER_AW_METRICS_SERVICE_CLIENT_DELEGATE_H_