OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "third_party/webrtc/api/peerconnectioninterface.h" | 13 #include "third_party/webrtc/api/peerconnectioninterface.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 class MediaStreamInterface; | 16 class MediaStreamInterface; |
17 class MediaStreamTrackInterface; | |
18 } | 17 } |
19 | 18 |
20 namespace content { | 19 namespace content { |
21 | 20 |
22 class MediaStreamTrackMetricsObserver; | 21 class MediaStreamTrackMetricsObserver; |
23 class RTCPeerConnectionHandler; | 22 class RTCPeerConnectionHandler; |
24 | 23 |
25 // Responsible for observing the connected lifetimes of tracks going | 24 // Responsible for observing the connected lifetimes of tracks going |
26 // over a PeerConnection, and sending messages to the browser process | 25 // over a PeerConnection, and sending messages to the browser process |
27 // about lifetime events. | 26 // about lifetime events. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 92 |
94 typedef ScopedVector<MediaStreamTrackMetricsObserver> ObserverVector; | 93 typedef ScopedVector<MediaStreamTrackMetricsObserver> ObserverVector; |
95 ObserverVector observers_; | 94 ObserverVector observers_; |
96 | 95 |
97 webrtc::PeerConnectionInterface::IceConnectionState ice_state_; | 96 webrtc::PeerConnectionInterface::IceConnectionState ice_state_; |
98 }; | 97 }; |
99 | 98 |
100 } // namespace | 99 } // namespace |
101 | 100 |
102 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ | 101 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_TRACK_METRICS_H_ |
OLD | NEW |