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

Unified Diff: talk/app/webrtc/mediastreamprovider.h

Issue 1551813002: Storing raw audio sink for default audio track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding unit tests for SetRawAudioSink. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/mediastreamprovider.h
diff --git a/talk/app/webrtc/mediastreamprovider.h b/talk/app/webrtc/mediastreamprovider.h
index 585d51bcc8178c1ba245a40f6121cbe1971d5671..ba87cb34b51675c008bc389be1d2bbaffa6b87ba 100644
--- a/talk/app/webrtc/mediastreamprovider.h
+++ b/talk/app/webrtc/mediastreamprovider.h
@@ -29,7 +29,7 @@
#define TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_
#include "webrtc/base/basictypes.h"
-#include "webrtc/base/scoped_ptr.h"
+#include "webrtc/base/scoped_ref_ptr.h"
namespace cricket {
@@ -75,7 +75,7 @@ class AudioProviderInterface {
// passed to the provider.
virtual void SetRawAudioSink(
uint32_t ssrc,
- rtc::scoped_ptr<webrtc::AudioSinkInterface> sink) = 0;
+ rtc::scoped_refptr<webrtc::AudioSinkInterface> sink) = 0;
the sun 2016/01/08 13:14:26 Assuming we'll be replacing this with shared_ptr o
Taylor Brandstetter 2016/01/08 19:46:58 const & would indeed save some unnecessary copying
the sun 2016/01/11 10:38:27 For scoped_ptr (and current scoped_ref_ptr) it won
tommi 2016/01/12 08:58:06 Passing scoped_refptr by value will trigger an ext
protected:
virtual ~AudioProviderInterface() {}
« no previous file with comments | « no previous file | talk/app/webrtc/peerconnectioninterface_unittest.cc » ('j') | talk/media/webrtc/webrtcvoiceengine.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698