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

Unified Diff: chrome/browser/profiles/profile_io_data.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: Moved GetMediaDeviceIDSalt to ResourceContext. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index fcdf2a9fffae5083c0915c1782ead31a482d96a1..81d771bf642dc30bd7dab2bb763aa56293a99e20 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -33,6 +33,7 @@ class DesktopNotificationService;
class ExtensionInfoMap;
class HostContentSettingsMap;
class ManagedModeURLFilter;
+class MediaDeviceIDSalt;
class Profile;
class ProtocolHandlerRegistry;
class SigninNamesOnIOThread;
@@ -173,6 +174,8 @@ class ProfileIOData {
return &signin_allowed_;
}
+ std::string GetMediaDeviceIDSalt() const;
+
net::TransportSecurityState* transport_security_state() const {
return transport_security_state_.get();
}
@@ -364,6 +367,7 @@ class ProfileIOData {
virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE;
virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
+ virtual std::string GetMediaDeviceIDSalt() OVERRIDE;
private:
friend class ProfileIOData;
@@ -464,6 +468,8 @@ class ProfileIOData {
mutable StringListPrefMember one_click_signin_rejected_email_list_;
+ mutable scoped_ptr<MediaDeviceIDSalt> media_device_id_salt_;
+
// Member variables which are pointed to by the various context objects.
mutable BooleanPrefMember enable_referrers_;
mutable BooleanPrefMember enable_do_not_track_;

Powered by Google App Engine
This is Rietveld 408576698