| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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   virtual void AddHistogramSample(PeerConnectionMetricsName type, | 138   virtual void AddHistogramSample(PeerConnectionMetricsName type, | 
| 139                                   int value) = 0; | 139                                   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 | 140 | 
| 144  protected: | 141  protected: | 
| 145   virtual ~MetricsObserverInterface() {} | 142   virtual ~MetricsObserverInterface() {} | 
| 146 }; | 143 }; | 
| 147 | 144 | 
| 148 typedef MetricsObserverInterface UMAObserver; | 145 typedef MetricsObserverInterface UMAObserver; | 
| 149 | 146 | 
| 150 class PeerConnectionInterface : public rtc::RefCountInterface { | 147 class PeerConnectionInterface : public rtc::RefCountInterface { | 
| 151  public: | 148  public: | 
| 152   // See http://dev.w3.org/2011/webrtc/editor/webrtc.html#state-definitions . | 149   // 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( | 595 CreatePeerConnectionFactory( | 
| 599     rtc::Thread* worker_thread, | 596     rtc::Thread* worker_thread, | 
| 600     rtc::Thread* signaling_thread, | 597     rtc::Thread* signaling_thread, | 
| 601     AudioDeviceModule* default_adm, | 598     AudioDeviceModule* default_adm, | 
| 602     cricket::WebRtcVideoEncoderFactory* encoder_factory, | 599     cricket::WebRtcVideoEncoderFactory* encoder_factory, | 
| 603     cricket::WebRtcVideoDecoderFactory* decoder_factory); | 600     cricket::WebRtcVideoDecoderFactory* decoder_factory); | 
| 604 | 601 | 
| 605 }  // namespace webrtc | 602 }  // namespace webrtc | 
| 606 | 603 | 
| 607 #endif  // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 604 #endif  // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 
| OLD | NEW | 
|---|