Chromium Code Reviews| 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 |