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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11 #include "content/common/media/media_stream_options.h"
12
13 namespace content {
14
15 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
16 public:
17 static bool DoesSourceIdMatchDeviceId(const GURL& security_origin,
18 const std::string& source_id,
19 const std::string& device_id);
20
21 static void GenerateSourceId(const GURL& origin,
22 const std::string& device_id,
23 std::string* source_id);
24
25 static void GenerateSourceIds(const GURL& origin,
26 const StreamDeviceInfoArray& raw_devices,
27 StreamDeviceInfoArray* devices_with_sourceid);
28
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SOURCE_ID_FACTORY
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698