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

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h

Issue 2540263003: Carry MediaStreamComponent properties on clone. (Closed)
Patch Set: added test + todo comments Created 4 years 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/mediastream/MediaStreamComponent.h
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h b/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
index 8aa26e9940f202859df502732938a79db3249f37..635bc82eab9a607eed48724db6a4f6af944a7c2e 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h
@@ -66,6 +66,8 @@ class PLATFORM_EXPORT MediaStreamComponent final
static MediaStreamComponent* create(MediaStreamSource*);
static MediaStreamComponent* create(const String& id, MediaStreamSource*);
+ MediaStreamComponent* clone() const;
+
// |m_trackData| may hold pointers to GC objects indirectly, and it may touch
// eagerly finalized objects in destruction.
// So this class runs pre-finalizer to finalize |m_trackData| promptly.
@@ -93,6 +95,10 @@ class PLATFORM_EXPORT MediaStreamComponent final
private:
MediaStreamComponent(const String& id, MediaStreamSource*);
+ MediaStreamComponent(const String& id,
+ MediaStreamSource*,
+ bool enabled,
+ bool muted);
// AudioSourceProviderImpl wraps a WebAudioSourceProvider::provideInput()
// calls into chromium to get a rendered audio stream.

Powered by Google App Engine
This is Rietveld 408576698