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

Unified Diff: Source/core/platform/mediastream/MediaStreamDescriptor.h

Issue 13982022: MediaStream API: Removing LocalMediaStream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/core/dom/EventTargetFactory.in ('k') | Source/modules/mediastream/LocalMediaStream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/mediastream/MediaStreamDescriptor.h
diff --git a/Source/core/platform/mediastream/MediaStreamDescriptor.h b/Source/core/platform/mediastream/MediaStreamDescriptor.h
index a0f253cbedd91261d8c118feaa2229982411d97a..a0c813a48304bafa78058cc2e5f76daa703ee911 100644
--- a/Source/core/platform/mediastream/MediaStreamDescriptor.h
+++ b/Source/core/platform/mediastream/MediaStreamDescriptor.h
@@ -34,6 +34,7 @@
#if ENABLE(MEDIA_STREAM)
+#include "core/platform/UUID.h"
#include "core/platform/mediastream/MediaStreamComponent.h"
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
@@ -57,9 +58,9 @@ public:
virtual ~ExtraData() { }
};
- static PassRefPtr<MediaStreamDescriptor> create(const String& id, const MediaStreamSourceVector& audioSources, const MediaStreamSourceVector& videoSources)
+ static PassRefPtr<MediaStreamDescriptor> create(const MediaStreamSourceVector& audioSources, const MediaStreamSourceVector& videoSources)
{
- return adoptRef(new MediaStreamDescriptor(id, audioSources, videoSources));
+ return adoptRef(new MediaStreamDescriptor(createCanonicalUUIDString(), audioSources, videoSources));
}
static PassRefPtr<MediaStreamDescriptor> create(const String& id, const MediaStreamComponentVector& audioComponents, const MediaStreamComponentVector& videoComponents)
« no previous file with comments | « Source/core/dom/EventTargetFactory.in ('k') | Source/modules/mediastream/LocalMediaStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698