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

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: addressed sky's comment and replaced "Do not allow any site to" with "Do not allow sites to" 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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void UpdateAllExceptionsViewsFromModel(); 86 void UpdateAllExceptionsViewsFromModel();
87 // As above, but only OTR tables. 87 // As above, but only OTR tables.
88 void UpdateAllOTRExceptionsViewsFromModel(); 88 void UpdateAllOTRExceptionsViewsFromModel();
89 // Clobbers and rebuilds just the geolocation exception table. 89 // Clobbers and rebuilds just the geolocation exception table.
90 void UpdateGeolocationExceptionsView(); 90 void UpdateGeolocationExceptionsView();
91 // Clobbers and rebuilds just the desktop notification exception table. 91 // Clobbers and rebuilds just the desktop notification exception table.
92 void UpdateNotificationExceptionsView(); 92 void UpdateNotificationExceptionsView();
93 // Clobbers and rebuilds just the Pepper Flash camera and microphone exception 93 // Clobbers and rebuilds just the Pepper Flash camera and microphone exception
94 // table. 94 // table.
95 void UpdateFlashCameraMicExceptionsView(); 95 void UpdateFlashCameraMicExceptionsView();
96 // Clobbers and rebuilds just the Media Stream device exception table.
97 void UpdateMediaStreamExceptionsView();
96 // Clobbers and rebuilds an exception table that's managed by the host content 98 // Clobbers and rebuilds an exception table that's managed by the host content
97 // settings map. 99 // settings map.
98 void UpdateExceptionsViewFromHostContentSettingsMap(ContentSettingsType type); 100 void UpdateExceptionsViewFromHostContentSettingsMap(ContentSettingsType type);
99 // As above, but acts on the OTR table for the content setting type. 101 // As above, but acts on the OTR table for the content setting type.
100 void UpdateExceptionsViewFromOTRHostContentSettingsMap( 102 void UpdateExceptionsViewFromOTRHostContentSettingsMap(
101 ContentSettingsType type); 103 ContentSettingsType type);
102 // Updates the radio buttons for enabling / disabling handlers. 104 // Updates the radio buttons for enabling / disabling handlers.
103 void UpdateHandlersEnabledRadios(); 105 void UpdateHandlersEnabledRadios();
106 // Removes one geolocation exception.
107 void RemoveGeolocationException(const ListValue* args, size_t arg_index);
108 // Removes one notification exception.
109 void RemoveNotificationException(const ListValue* args, size_t arg_index);
110 // Removes one Pepper Flash camera and microphone exception.
111 void RemoveFlashCameraMicException(const ListValue* args, size_t arg_index);
112 // Removes one exception of |type| from the host content settings map.
113 void RemoveExceptionFromHostContentSettingsMap(
114 const ListValue* args,
115 size_t arg_index,
116 const ExContentSettingsType& type);
104 117
105 // Callbacks used by the page ------------------------------------------------ 118 // Callbacks used by the page ------------------------------------------------
106 119
107 // Sets the default value for a specific content type. |args| includes the 120 // Sets the default value for a specific content type. |args| includes the
108 // content type and a string describing the new default the user has 121 // content type and a string describing the new default the user has
109 // chosen. 122 // chosen.
110 void SetContentFilter(const ListValue* args); 123 void SetContentFilter(const ListValue* args);
111 124
112 // Removes the given row from the table. The first entry in |args| is the 125 // Removes the given row from the table. The first entry in |args| is the
113 // content type, and the rest of the arguments depend on the content type 126 // content type, and the rest of the arguments depend on the content type
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 174
162 static const ExContentSettingsTypeNameEntry 175 static const ExContentSettingsTypeNameEntry
163 kExContentSettingsTypeGroupNames[]; 176 kExContentSettingsTypeGroupNames[];
164 177
165 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 178 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
166 }; 179 };
167 180
168 } // namespace options2 181 } // namespace options2
169 182
170 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ 183 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698