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

Side by Side Diff: chrome/browser/ui/webui/options2/content_settings_handler2.h

Issue 10537099: add "always allow" option to the mediastream infobar and allow user to allow/not allow acces to devi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use only content settings, added a device controller, addressed all the comments Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
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 CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/plugin_data_remover_helper.h" 9 #include "chrome/browser/plugin_data_remover_helper.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type); 51 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type);
52 // Clobbers and rebuilds all the exceptions tables in the page (both normal 52 // Clobbers and rebuilds all the exceptions tables in the page (both normal
53 // and OTR tables). 53 // and OTR tables).
54 void UpdateAllExceptionsViewsFromModel(); 54 void UpdateAllExceptionsViewsFromModel();
55 // As above, but only OTR tables. 55 // As above, but only OTR tables.
56 void UpdateAllOTRExceptionsViewsFromModel(); 56 void UpdateAllOTRExceptionsViewsFromModel();
57 // Clobbers and rebuilds just the geolocation exception table. 57 // Clobbers and rebuilds just the geolocation exception table.
58 void UpdateGeolocationExceptionsView(); 58 void UpdateGeolocationExceptionsView();
59 // Clobbers and rebuilds just the desktop notification exception table. 59 // Clobbers and rebuilds just the desktop notification exception table.
60 void UpdateNotificationExceptionsView(); 60 void UpdateNotificationExceptionsView();
61 // Clobbers and rebuilds just the mediastream device exception table.
62 void UpdateMediaStreamExceptionsView();
61 // Clobbers and rebuilds an exception table that's managed by the host content 63 // Clobbers and rebuilds an exception table that's managed by the host content
62 // settings map. 64 // settings map.
63 void UpdateExceptionsViewFromHostContentSettingsMap(ContentSettingsType type); 65 void UpdateExceptionsViewFromHostContentSettingsMap(ContentSettingsType type);
64 // As above, but acts on the OTR table for the content setting type. 66 // As above, but acts on the OTR table for the content setting type.
65 void UpdateExceptionsViewFromOTRHostContentSettingsMap( 67 void UpdateExceptionsViewFromOTRHostContentSettingsMap(
66 ContentSettingsType type); 68 ContentSettingsType type);
67 // Updates the radio buttons for enabling / disabling handlers. 69 // Updates the radio buttons for enabling / disabling handlers.
68 void UpdateHandlersEnabledRadios(); 70 void UpdateHandlersEnabledRadios();
69 71
70 // Callbacks used by the page ------------------------------------------------ 72 // Callbacks used by the page ------------------------------------------------
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 114
113 content::NotificationRegistrar notification_registrar_; 115 content::NotificationRegistrar notification_registrar_;
114 PrefChangeRegistrar pref_change_registrar_; 116 PrefChangeRegistrar pref_change_registrar_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 118 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
117 }; 119 };
118 120
119 } // namespace options2 121 } // namespace options2
120 122
121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ 123 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698