signaling_tracker.h 765 B

1234567891011121314151617181920212223242526
  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 REMOTING_SIGNALING_SIGNALING_TRACKER_H_
  5. #define REMOTING_SIGNALING_SIGNALING_TRACKER_H_
  6. namespace remoting {
  7. // Interface to track signaling related information. Useful for telemetry and
  8. // debugging.
  9. class SignalingTracker {
  10. public:
  11. virtual ~SignalingTracker() = default;
  12. // Called whenever a signaling activity is detected. For an active signaling
  13. // channel, this should be called not less than once per minute.
  14. virtual void OnSignalingActive() = 0;
  15. protected:
  16. SignalingTracker() = default;
  17. };
  18. } // namespace remoting
  19. #endif // REMOTING_SIGNALING_SIGNALING_TRACKER_H_