Chromium Code Reviews| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 class MetricsObserverInterface : public rtc::RefCountInterface { | 128 class MetricsObserverInterface : public rtc::RefCountInterface { |
| 129 public: | 129 public: |
| 130 | 130 |
| 131 // |type| is the type of the enum counter to be incremented. |counter| | 131 // |type| is the type of the enum counter to be incremented. |counter| |
| 132 // is the particular counter in that type. |counter_max| is the next sequence | 132 // is the particular counter in that type. |counter_max| is the next sequence |
| 133 // number after the highest counter. | 133 // number after the highest counter. |
| 134 virtual void IncrementEnumCounter(PeerConnectionEnumCounterType type, | 134 virtual void IncrementEnumCounter(PeerConnectionEnumCounterType type, |
| 135 int counter, | 135 int counter, |
| 136 int counter_max) {} | 136 int counter_max) {} |
| 137 | 137 |
| 138 // Modeled against UMA_HISTOGRAM_SPARSE_SLOWLY which doesn't require a | |
| 139 // boundary value as UMA_HISTOGRAM_ENUMERATION. This is used to report sparse | |
| 140 // value like SSL cipher suite. TODO(guoweis): Remove the implmenetation once | |
| 141 // the code gets into chromium. | |
|
Ryan Sleevi
2015/09/24 21:09:58
This seems like a bad comment.
It discusses Chrom
guoweis_webrtc
2015/09/25 18:30:31
Done.
| |
| 142 virtual void IncrementSparseEnumCounter(PeerConnectionEnumCounterType type, | |
| 143 int counter) { | |
| 144 IncrementEnumCounter(type, counter, 0 /* Ignored */); | |
| 145 } | |
| 146 | |
| 138 virtual void AddHistogramSample(PeerConnectionMetricsName type, | 147 virtual void AddHistogramSample(PeerConnectionMetricsName type, |
| 139 int value) = 0; | 148 int value) = 0; |
| 140 // TODO(jbauch): Make method abstract when it is implemented by Chromium. | |
| 141 virtual void AddHistogramSample(PeerConnectionMetricsName type, | |
| 142 const std::string& value) {} | |
| 143 | 149 |
| 144 protected: | 150 protected: |
| 145 virtual ~MetricsObserverInterface() {} | 151 virtual ~MetricsObserverInterface() {} |
| 146 }; | 152 }; |
| 147 | 153 |
| 148 typedef MetricsObserverInterface UMAObserver; | 154 typedef MetricsObserverInterface UMAObserver; |
| 149 | 155 |
| 150 class PeerConnectionInterface : public rtc::RefCountInterface { | 156 class PeerConnectionInterface : public rtc::RefCountInterface { |
| 151 public: | 157 public: |
| 152 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . | 158 // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 CreatePeerConnectionFactory( | 604 CreatePeerConnectionFactory( |
| 599 rtc::Thread* worker_thread, | 605 rtc::Thread* worker_thread, |
| 600 rtc::Thread* signaling_thread, | 606 rtc::Thread* signaling_thread, |
| 601 AudioDeviceModule* default_adm, | 607 AudioDeviceModule* default_adm, |
| 602 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 608 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 603 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 609 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
| 604 | 610 |
| 605 } // namespace webrtc | 611 } // namespace webrtc |
| 606 | 612 |
| 607 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 613 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |