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

Unified Diff: Source/platform/exported/WebMediaStreamSource.cpp

Issue 534473002: Revert of Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/platform/exported/WebMediaStream.cpp ('k') | Source/platform/exported/WebMediaStreamTrack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebMediaStreamSource.cpp
diff --git a/Source/platform/exported/WebMediaStreamSource.cpp b/Source/platform/exported/WebMediaStreamSource.cpp
index 869f58e66b1b619818bbf60c164aa831cdebb5c7..8be20e9893fb674a6733c7f6672d472366e56e23 100644
--- a/Source/platform/exported/WebMediaStreamSource.cpp
+++ b/Source/platform/exported/WebMediaStreamSource.cpp
@@ -69,7 +69,7 @@
m_owner = owner;
}
-WebMediaStreamSource::WebMediaStreamSource(MediaStreamSource* mediaStreamSource)
+WebMediaStreamSource::WebMediaStreamSource(const PassRefPtr<MediaStreamSource>& mediaStreamSource)
: m_private(mediaStreamSource)
{
}
@@ -88,6 +88,11 @@
void WebMediaStreamSource::reset()
{
m_private.reset();
+}
+
+WebMediaStreamSource::operator PassRefPtr<MediaStreamSource>() const
+{
+ return m_private.get();
}
WebMediaStreamSource::operator MediaStreamSource*() const
« no previous file with comments | « Source/platform/exported/WebMediaStream.cpp ('k') | Source/platform/exported/WebMediaStreamTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698