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

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

Issue 2710213005: Revert of Remove |remote| and |readonly| members of MediaStreamTrack (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp b/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp
index 56e5e5a700545a3c0899526c25890e62a626dacc..65681024471e81f1e044491a2166a7a7282e23d8 100644
--- a/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebMediaStreamSource.cpp
@@ -91,7 +91,15 @@
Type type,
const WebString& name) {
m_private = MediaStreamSource::create(
- id, static_cast<MediaStreamSource::StreamType>(type), name);
+ id, static_cast<MediaStreamSource::StreamType>(type), name, false);
+}
+
+void WebMediaStreamSource::initialize(const WebString& id,
+ Type type,
+ const WebString& name,
+ bool remote) {
+ m_private = MediaStreamSource::create(
+ id, static_cast<MediaStreamSource::StreamType>(type), name, remote);
}
WebString WebMediaStreamSource::id() const {
@@ -107,6 +115,11 @@
WebString WebMediaStreamSource::name() const {
ASSERT(!m_private.isNull());
return m_private.get()->name();
+}
+
+bool WebMediaStreamSource::remote() const {
+ ASSERT(!m_private.isNull());
+ return m_private.get()->remote();
}
void WebMediaStreamSource::setReadyState(ReadyState state) {

Powered by Google App Engine
This is Rietveld 408576698