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

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: Rebased 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..0ae1541d5d28102026c8cb1ce4a686f1046d5466 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;

Powered by Google App Engine
This is Rietveld 408576698