OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 protected: | 121 protected: |
122 virtual ~StatsObserver() {} | 122 virtual ~StatsObserver() {} |
123 }; | 123 }; |
124 | 124 |
125 class MetricsObserverInterface : public rtc::RefCountInterface { | 125 class MetricsObserverInterface : public rtc::RefCountInterface { |
126 public: | 126 public: |
127 virtual void IncrementCounter(PeerConnectionMetricsCounter type) = 0; | 127 virtual void IncrementCounter(PeerConnectionMetricsCounter type) = 0; |
128 virtual void AddHistogramSample(PeerConnectionMetricsName type, | 128 virtual void AddHistogramSample(PeerConnectionMetricsName type, |
129 int value) = 0; | 129 int value) = 0; |
| 130 // TODO(jbauch): Make method abstract when it is implemented by Chromium. |
| 131 virtual void AddHistogramSample(PeerConnectionMetricsName type, |
| 132 const std::string& value) {} |
130 | 133 |
131 protected: | 134 protected: |
132 virtual ~MetricsObserverInterface() {} | 135 virtual ~MetricsObserverInterface() {} |
133 }; | 136 }; |
134 | 137 |
135 typedef MetricsObserverInterface UMAObserver; | 138 typedef MetricsObserverInterface UMAObserver; |
136 | 139 |
137 class PeerConnectionInterface : public rtc::RefCountInterface { | 140 class PeerConnectionInterface : public rtc::RefCountInterface { |
138 public: | 141 public: |
139 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . | 142 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 CreatePeerConnectionFactory( | 622 CreatePeerConnectionFactory( |
620 rtc::Thread* worker_thread, | 623 rtc::Thread* worker_thread, |
621 rtc::Thread* signaling_thread, | 624 rtc::Thread* signaling_thread, |
622 AudioDeviceModule* default_adm, | 625 AudioDeviceModule* default_adm, |
623 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 626 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
624 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 627 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
625 | 628 |
626 } // namespace webrtc | 629 } // namespace webrtc |
627 | 630 |
628 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 631 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |