performance_manager_feature_observer_client.h 1.1 KB

123456789101112131415161718192021222324252627
  1. // Copyright 2019 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 COMPONENTS_PERFORMANCE_MANAGER_PERFORMANCE_MANAGER_FEATURE_OBSERVER_CLIENT_H_
  5. #define COMPONENTS_PERFORMANCE_MANAGER_PERFORMANCE_MANAGER_FEATURE_OBSERVER_CLIENT_H_
  6. #include "content/public/browser/feature_observer_client.h"
  7. namespace performance_manager {
  8. class PerformanceManagerFeatureObserverClient
  9. : public content::FeatureObserverClient {
  10. public:
  11. PerformanceManagerFeatureObserverClient();
  12. ~PerformanceManagerFeatureObserverClient() override;
  13. // content::FeatureObserverClient implementation:
  14. void OnStartUsing(content::GlobalRenderFrameHostId id,
  15. blink::mojom::ObservedFeatureType feature_type) override;
  16. void OnStopUsing(content::GlobalRenderFrameHostId id,
  17. blink::mojom::ObservedFeatureType feature_type) override;
  18. };
  19. } // namespace performance_manager
  20. #endif // COMPONENTS_PERFORMANCE_MANAGER_PERFORMANCE_MANAGER_FEATURE_OBSERVER_CLIENT_H_