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

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

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed jois nit. Created 7 years 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/public/browser/media_device_id.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_context.h
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h
index 7019fb715f61f9a0cd277e82b456d89ca5a086d6..ba713f60f18879cea685d26be77885d86956f03a 100644
--- a/content/public/browser/resource_context.h
+++ b/content/public/browser/resource_context.h
@@ -55,6 +55,12 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
// determine what level of authorization is given to |origin| to access
// resource metadata.
virtual bool AllowCameraAccess(const GURL& origin) = 0;
+
+ // Returns a random salt string that is used for creating media device IDs.
+ // The salt should be stored in the current user profile and should be reset
+ // if cookies are cleared. Returns an empty string per default.
+ // TODO(perkj): Make this method pure virtual when crbug/315022 is fixed.
+ virtual std::string GetMediaDeviceIDSalt();
};
} // namespace content
« no previous file with comments | « content/public/browser/media_device_id.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698