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

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

Issue 1987643002: 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, 7 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/public/browser/resource_context.h
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h
index 039ad94006ded4e49f25ad2a3784d3ed9d7e6b40..73b3aa55fdcd6702040cbf3f76934af455e8bb05 100644
--- a/content/public/browser/resource_context.h
+++ b/content/public/browser/resource_context.h
@@ -77,6 +77,10 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
// fixed.
typedef base::Callback<std::string()> SaltCallback;
virtual SaltCallback GetMediaDeviceIDSalt();
+
+ // Utility functions useful for implementations
+ static std::string CreateRandomMediaDeviceIDSalt();
+ static SaltCallback CreateSaltCallback(const std::string& salt);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698