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

Side by Side Diff: content/public/browser/media_device_id.h

Issue 2424163004: Factor out authorization from AudioRendererHost. (Closed)
Patch Set: const& Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Media device IDs come in two flavors: The machine-wide unique ID of 5 // Media device IDs come in two flavors: The machine-wide unique ID of
6 // the device, which is what we use on the browser side, and one-way 6 // the device, which is what we use on the browser side, and one-way
7 // hashes over the unique ID and a security origin, which we provide 7 // hashes over the unique ID and a security origin, which we provide
8 // to code on the renderer side as per-security-origin IDs. 8 // to code on the renderer side as per-security-origin IDs.
9 9
10 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_DEVICE_ID_H_ 10 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_DEVICE_ID_H_
(...skipping 22 matching lines...) Expand all
33 const url::Origin& security_origin, 33 const url::Origin& security_origin,
34 const std::string& device_guid, 34 const std::string& device_guid,
35 const std::string& raw_unique_id); 35 const std::string& raw_unique_id);
36 36
37 CONTENT_EXPORT bool GetMediaDeviceIDForHMAC(MediaStreamType stream_type, 37 CONTENT_EXPORT bool GetMediaDeviceIDForHMAC(MediaStreamType stream_type,
38 const std::string& salt, 38 const std::string& salt,
39 const url::Origin& security_origin, 39 const url::Origin& security_origin,
40 const std::string& source_id, 40 const std::string& source_id,
41 std::string* device_id); 41 std::string* device_id);
42 42
43 CONTENT_EXPORT bool IsValidDeviceId(const std::string& device_id);
44
43 } // namespace content 45 } // namespace content
44 46
45 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_DEVICE_ID_H_ 47 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_DEVICE_ID_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host_unittest.cc ('k') | content/public/browser/media_device_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698