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

Unified Diff: content/public/browser/media_device_id.h

Issue 2065383003: Revert of Make default media device ID salts random by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « content/browser/resource_context_impl.cc ('k') | content/public/browser/media_device_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/media_device_id.h
diff --git a/content/public/browser/media_device_id.h b/content/public/browser/media_device_id.h
index a08320ca2721d78fe2057c5c9be886975a8b8914..579d995f5b4387384726c05eb056708497b1b510 100644
--- a/content/public/browser/media_device_id.h
+++ b/content/public/browser/media_device_id.h
@@ -22,23 +22,24 @@
// Generates a one-way hash of a device's unique ID usable by one
// particular security origin.
CONTENT_EXPORT std::string GetHMACForMediaDeviceID(
- const std::string& salt,
+ const ResourceContext::SaltCallback& sc,
const url::Origin& security_origin,
const std::string& raw_unique_id);
// Convenience method to check if |device_guid| is an HMAC of
// |raw_device_id| for |security_origin|.
CONTENT_EXPORT bool DoesMediaDeviceIDMatchHMAC(
- const std::string& salt,
+ const ResourceContext::SaltCallback& sc,
const url::Origin& security_origin,
const std::string& device_guid,
const std::string& raw_unique_id);
-CONTENT_EXPORT bool GetMediaDeviceIDForHMAC(MediaStreamType stream_type,
- const std::string& salt,
- const url::Origin& security_origin,
- const std::string& source_id,
- std::string* device_id);
+CONTENT_EXPORT bool GetMediaDeviceIDForHMAC(
+ MediaStreamType stream_type,
+ const ResourceContext::SaltCallback& rc,
+ const url::Origin& security_origin,
+ const std::string& source_id,
+ std::string* device_id);
} // namespace content
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/public/browser/media_device_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698