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

Unified Diff: content/browser/renderer_host/media/media_source_id_factory.h

Issue 34393006: Refactor MediaStreamManager to never output real device id. It now always output sourceId in the fo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up unneccessary test setup that just caused confusion. Created 7 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: content/browser/renderer_host/media/media_source_id_factory.h
diff --git a/content/browser/renderer_host/media/media_source_id_factory.h b/content/browser/renderer_host/media/media_source_id_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..a1a93cbdd91b93b86d934594144145c6457fda53
--- /dev/null
+++ b/content/browser/renderer_host/media/media_source_id_factory.h
@@ -0,0 +1,33 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY
+#define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY
+
+#include <string>
+
+#include "content/common/content_export.h"
+#include "content/common/media/media_stream_options.h"
+
+namespace content {
+
+class CONTENT_EXPORT MediaSourceIdFactory {
no longer working on chromium 2013/10/25 08:16:39 do you need to make it a class? I think it should
+ public:
+ static bool DoesSourceIdMatchDeviceId(const GURL& security_origin,
+ const std::string& source_id,
+ const std::string& device_id);
+
+ static void GenerateSourceId(const GURL& origin,
+ const std::string& device_id,
+ std::string* source_id);
+
+ static void GenerateSourceIds(const GURL& origin,
+ const StreamDeviceInfoArray& raw_devices,
+ StreamDeviceInfoArray* devices_with_sourceid);
+
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY

Powered by Google App Engine
This is Rietveld 408576698