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

Side by Side Diff: talk/app/webrtc/peerconnectioninterface.h

Issue 1156143005: Report metrics about negotiated ciphers. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback from tommi Created 5 years, 5 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
« no previous file with comments | « talk/app/webrtc/peerconnection_unittest.cc ('k') | talk/app/webrtc/umametrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « talk/app/webrtc/peerconnection_unittest.cc ('k') | talk/app/webrtc/umametrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698