peer_to_peer_connections_count_observer.h 1.0 KB

123456789101112131415161718192021222324252627282930
  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 NET_NQE_PEER_TO_PEER_CONNECTIONS_COUNT_OBSERVER_H_
  5. #define NET_NQE_PEER_TO_PEER_CONNECTIONS_COUNT_OBSERVER_H_
  6. #include "net/base/net_export.h"
  7. namespace net {
  8. // Observes changes in the count of peer to peer connections.
  9. class NET_EXPORT_PRIVATE PeerToPeerConnectionsCountObserver {
  10. public:
  11. PeerToPeerConnectionsCountObserver(
  12. const PeerToPeerConnectionsCountObserver&) = delete;
  13. PeerToPeerConnectionsCountObserver& operator=(
  14. const PeerToPeerConnectionsCountObserver&) = delete;
  15. // Called when there is a change in the count of peer to peer connections.
  16. virtual void OnPeerToPeerConnectionsCountChange(uint32_t count) = 0;
  17. protected:
  18. PeerToPeerConnectionsCountObserver() = default;
  19. virtual ~PeerToPeerConnectionsCountObserver() = default;
  20. };
  21. } // namespace net
  22. #endif // NET_NQE_PEER_TO_PEER_CONNECTIONS_COUNT_OBSERVER_H_