• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_ROUTE_CHANGE_H_
12 #define LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_ROUTE_CHANGE_H_
13 
14 #include <memory>
15 
16 #include "api/rtc_event_log/rtc_event.h"
17 
18 namespace webrtc {
19 
20 class RtcEventRouteChange final : public RtcEvent {
21  public:
22   RtcEventRouteChange(bool connected, uint32_t overhead);
23   ~RtcEventRouteChange() override;
24 
25   Type GetType() const override;
26 
27   bool IsConfigEvent() const override;
28 
29   std::unique_ptr<RtcEventRouteChange> Copy() const;
30 
connected()31   bool connected() const { return connected_; }
overhead()32   uint32_t overhead() const { return overhead_; }
33 
34  private:
35   RtcEventRouteChange(const RtcEventRouteChange& other);
36 
37   const bool connected_;
38   const uint32_t overhead_;
39 };
40 
41 }  // namespace webrtc
42 #endif  // LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_ROUTE_CHANGE_H_
43