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

Unified Diff: Source/platform/mediastream/MediaStreamSource.cpp

Issue 569613002: Add the possibility to specify MediaStreamTrack::remote when creating a track. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed construction call from WebAudio. Created 6 years, 2 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/mediastream/MediaStreamSource.h ('k') | public/platform/WebMediaStreamSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mediastream/MediaStreamSource.cpp
diff --git a/Source/platform/mediastream/MediaStreamSource.cpp b/Source/platform/mediastream/MediaStreamSource.cpp
index 6f69127bc64d616f444bbabfb7a2495a657f13a7..80b2a5b1275ffc53919e2a7bf0a8df2f643ea75c 100644
--- a/Source/platform/mediastream/MediaStreamSource.cpp
+++ b/Source/platform/mediastream/MediaStreamSource.cpp
@@ -34,15 +34,17 @@
namespace blink {
-PassRefPtr<MediaStreamSource> MediaStreamSource::create(const String& id, Type type, const String& name, ReadyState readyState, bool requiresConsumer)
+PassRefPtr<MediaStreamSource> MediaStreamSource::create(const String& id, Type type, const String& name, bool remote, bool readonly, ReadyState readyState, bool requiresConsumer)
{
- return adoptRef(new MediaStreamSource(id, type, name, readyState, requiresConsumer));
+ return adoptRef(new MediaStreamSource(id, type, name, remote, readonly, readyState, requiresConsumer));
}
-MediaStreamSource::MediaStreamSource(const String& id, Type type, const String& name, ReadyState readyState, bool requiresConsumer)
+MediaStreamSource::MediaStreamSource(const String& id, Type type, const String& name, bool remote, bool readonly, ReadyState readyState, bool requiresConsumer)
: m_id(id)
, m_type(type)
, m_name(name)
+ , m_remote(remote)
+ , m_readonly(readonly)
, m_readyState(readyState)
, m_requiresConsumer(requiresConsumer)
{
« no previous file with comments | « Source/platform/mediastream/MediaStreamSource.h ('k') | public/platform/WebMediaStreamSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698