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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Returns true if microphone access is allowed for |origin|. Used to 49 // Returns true if microphone access is allowed for |origin|. Used to
50 // determine what level of authorization is given to |origin| to access 50 // determine what level of authorization is given to |origin| to access
51 // resource metadata. 51 // resource metadata.
52 virtual bool AllowMicAccess(const GURL& origin) = 0; 52 virtual bool AllowMicAccess(const GURL& origin) = 0;
53 53
54 // Returns true if web camera access is allowed for |origin|. Used to 54 // Returns true if web camera access is allowed for |origin|. Used to
55 // determine what level of authorization is given to |origin| to access 55 // determine what level of authorization is given to |origin| to access
56 // resource metadata. 56 // resource metadata.
57 virtual bool AllowCameraAccess(const GURL& origin) = 0; 57 virtual bool AllowCameraAccess(const GURL& origin) = 0;
58
59 // Returns a random salt string that is used for creating media device IDs.
60 // The salt should be stored in the current user profile and should be reset
61 // if cookies are cleared. Returns an empty string per default.
62 // TODO(perkj): Make this method pure virtual when crbug/315022 is fixed.
63 virtual std::string GetMediaDeviceIDSalt();
58 }; 64 };
59 65
60 } // namespace content 66 } // namespace content
61 67
62 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_ 68 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« 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