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

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

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
Index: Source/platform/mediastream/MediaStreamSource.h
diff --git a/Source/platform/mediastream/MediaStreamSource.h b/Source/platform/mediastream/MediaStreamSource.h
index 3d69fe5b38a0451cae9a5c69fc79da57db2480f5..056f928dc8c3b6a48444134bb9a95cff2fc9d983 100644
--- a/Source/platform/mediastream/MediaStreamSource.h
+++ b/Source/platform/mediastream/MediaStreamSource.h
@@ -68,11 +68,13 @@ public:
ReadyStateEnded = 2
};
- static PassRefPtr<MediaStreamSource> create(const String& id, Type, const String& name, ReadyState = ReadyStateLive, bool requiresConsumer = false);
+ static PassRefPtr<MediaStreamSource> create(const String& id, Type, const String& name, bool remote, bool readonly, ReadyState = ReadyStateLive, bool requiresConsumer = false);
const String& id() const { return m_id; }
Type type() const { return m_type; }
const String& name() const { return m_name; }
+ bool remote() const { return m_remote; }
+ bool readonly() const { return m_readonly; }
void setReadyState(ReadyState);
ReadyState readyState() const { return m_readyState; }
@@ -95,11 +97,13 @@ public:
const HeapHashSet<Member<AudioDestinationConsumer> >& audioConsumers() { return m_audioConsumers; }
private:
- MediaStreamSource(const String& id, Type, const String& name, ReadyState, bool requiresConsumer);
+ MediaStreamSource(const String& id, Type, const String& name, bool remote, bool readonly, ReadyState, bool requiresConsumer);
String m_id;
Type m_type;
String m_name;
+ bool m_remote;
+ bool m_readonly;
ReadyState m_readyState;
bool m_requiresConsumer;
Vector<Observer*> m_observers;
« no previous file with comments | « Source/platform/exported/WebMediaStreamSource.cpp ('k') | Source/platform/mediastream/MediaStreamSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698