Index: webrtc/pc/rtcstatscollector.h |
diff --git a/webrtc/api/rtcstatscollector.h b/webrtc/pc/rtcstatscollector.h |
similarity index 93% |
rename from webrtc/api/rtcstatscollector.h |
rename to webrtc/pc/rtcstatscollector.h |
index 08bab803e25809288925d0a301670e55d325fae2..86b0ac8263b9994ef312eec524790c5decaded9a 100644 |
--- a/webrtc/api/rtcstatscollector.h |
+++ b/webrtc/pc/rtcstatscollector.h |
@@ -8,17 +8,16 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#ifndef WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
-#define WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
+#ifndef WEBRTC_PC_RTCSTATSCOLLECTOR_H_ |
+#define WEBRTC_PC_RTCSTATSCOLLECTOR_H_ |
#include <map> |
#include <memory> |
#include <set> |
#include <vector> |
-#include "webrtc/api/datachannel.h" |
-#include "webrtc/api/datachannelinterface.h" |
#include "webrtc/api/stats/rtcstats_objects.h" |
+#include "webrtc/api/stats/rtcstatscollectorcallback.h" |
#include "webrtc/api/stats/rtcstatsreport.h" |
#include "webrtc/base/asyncinvoker.h" |
#include "webrtc/base/refcount.h" |
@@ -26,6 +25,7 @@ |
#include "webrtc/base/sigslot.h" |
#include "webrtc/base/sslidentity.h" |
#include "webrtc/base/timeutils.h" |
+#include "webrtc/pc/datachannel.h" |
namespace cricket { |
class Candidate; |
@@ -40,14 +40,6 @@ namespace webrtc { |
class PeerConnection; |
struct SessionStats; |
-class RTCStatsCollectorCallback : public virtual rtc::RefCountInterface { |
- public: |
- virtual ~RTCStatsCollectorCallback() {} |
- |
- virtual void OnStatsDelivered( |
- const rtc::scoped_refptr<const RTCStatsReport>& report) = 0; |
-}; |
- |
// All public methods of the collector are to be called on the signaling thread. |
// Stats are gathered on the signaling, worker and network threads |
// asynchronously. The callback is invoked on the signaling thread. Resulting |
@@ -174,4 +166,4 @@ const char* DataStateToRTCDataChannelStateForTesting( |
} // namespace webrtc |
-#endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
+#endif // WEBRTC_PC_RTCSTATSCOLLECTOR_H_ |