aw_metrics_service_accessor.h 803 B

12345678910111213141516171819202122
  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_METRICS_AW_METRICS_SERVICE_ACCESSOR_H_
  5. #define ANDROID_WEBVIEW_BROWSER_METRICS_AW_METRICS_SERVICE_ACCESSOR_H_
  6. #include "components/metrics/metrics_service_accessor.h"
  7. namespace android_webview {
  8. // This class limits and documents access to metrics service helper methods.
  9. // Since these methods are private, each user has to be explicitly declared
  10. // as a 'friend' below.
  11. class AwMetricsServiceAccessor : public metrics::MetricsServiceAccessor {
  12. private:
  13. friend class AwBrowserMainParts;
  14. };
  15. } // namespace android_webview
  16. #endif // ANDROID_WEBVIEW_BROWSER_METRICS_AW_METRICS_SERVICE_ACCESSOR_H_