Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: webrtc/logging/rtc_event_log/events/rtc_event_probe_result_failure.h

Issue 3012923002: Add the internals of RtcEvent's subclasses (Closed)
Patch Set: Rebased Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_ 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_ 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_
13 13
14 #include "webrtc/logging/rtc_event_log/events/rtc_event.h" 14 #include "webrtc/logging/rtc_event_log/events/rtc_event.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 enum ProbeFailureReason {
19 kInvalidSendReceiveInterval,
20 kInvalidSendReceiveRatio,
21 kTimeout
22 };
23
18 class RtcEventProbeResultFailure final : public RtcEvent { 24 class RtcEventProbeResultFailure final : public RtcEvent {
19 public: 25 public:
26 RtcEventProbeResultFailure(int id, ProbeFailureReason failure_reason);
20 ~RtcEventProbeResultFailure() override = default; 27 ~RtcEventProbeResultFailure() override = default;
21 28
22 Type GetType() const override; 29 Type GetType() const override;
23 30
24 bool IsConfigEvent() const override; 31 bool IsConfigEvent() const override;
32
33 const int id_;
34 const ProbeFailureReason failure_reason_;
25 }; 35 };
26 36
27 } // namespace webrtc 37 } // namespace webrtc
28 38
29 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_ 39 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_PROBE_RESULT_FAILURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698