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

Unified Diff: chrome/browser/media/media_stream_devices_controller.h

Issue 11896028: Add an location bar icon and a content settings bubble for media settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 7 years, 11 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: chrome/browser/media/media_stream_devices_controller.h
diff --git a/chrome/browser/media/media_stream_devices_controller.h b/chrome/browser/media/media_stream_devices_controller.h
index 992288ba88e45e27d69a7b07fc36872869b0f2f8..047fbc59e5776e29e69974656f7c5625234bd672 100644
--- a/chrome/browser/media/media_stream_devices_controller.h
+++ b/chrome/browser/media/media_stream_devices_controller.h
@@ -11,10 +11,12 @@
class PrefServiceSyncable;
class Profile;
+class TabSpecificContentSettings;
class MediaStreamDevicesController {
public:
MediaStreamDevicesController(Profile* profile,
+ TabSpecificContentSettings* content_settings,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback);
@@ -71,6 +73,13 @@ class MediaStreamDevicesController {
// The owner of this class needs to make sure it does not outlive the profile.
Profile* profile_;
+ // Weak pointer to the tab specific content settings of the tab for which the
+ // MediaStreamDevicesController was created. The tab specific content
+ // settings are associated with a the web contents of the tab. The
+ // MediaStreamDeviceController must not outlive the web contents for which it
+ // was created.
+ TabSpecificContentSettings* content_settings_;
+
// The original request for access to devices.
const content::MediaStreamRequest request_;

Powered by Google App Engine
This is Rietveld 408576698