Chromium Code Reviews| Index: chrome/browser/ui/webui/options/content_settings_handler.h |
| diff --git a/chrome/browser/ui/webui/options/content_settings_handler.h b/chrome/browser/ui/webui/options/content_settings_handler.h |
| index 3cd3e566cb307296a768af528de76907d710cd3d..0b2c38ce368fe7aefe8963523504fc4b0f108a95 100644 |
| --- a/chrome/browser/ui/webui/options/content_settings_handler.h |
| +++ b/chrome/browser/ui/webui/options/content_settings_handler.h |
| @@ -31,6 +31,8 @@ class ContentSettingsHandler : public OptionsPageUIHandler, |
| public content::NotificationObserver, |
| public PepperFlashSettingsManager::Client { |
| public: |
| + struct ChooserTypeNameEntry; |
|
Bernhard Bauer
2015/11/18 14:11:06
This can't be in the private section because it's
|
| + |
| ContentSettingsHandler(); |
| ~ContentSettingsHandler() override; |
| @@ -149,6 +151,14 @@ class ContentSettingsHandler : public OptionsPageUIHandler, |
| // Clobbers and rebuilds just the MIDI SysEx exception table. |
| void UpdateMIDISysExExceptionsView(); |
| + // Clobbers and rebuilds all chooser-based exception tables. |
| + void UpdateAllChooserExceptionsViewsFromModel(); |
| + |
| + // Clobbers and rebuilds the exception table for a particular chooser-based |
| + // permission. |
| + void UpdateChooserExceptionsViewFromModel( |
| + const ChooserTypeNameEntry& chooser_type); |
| + |
| // Modifies the zoom level exceptions list to display correct chrome |
| // signin page entry. When the legacy (non-WebView-based) signin page |
| // goes away, this function can be removed. |
| @@ -187,6 +197,11 @@ class ContentSettingsHandler : public OptionsPageUIHandler, |
| // RemoveException(). |
| void RemoveZoomLevelException(const base::ListValue* args); |
| + // Removes one exception for a chooser-based permission. |args| contains the |
| + // parameters passed to RemoveException(). |
| + void RemoveChooserException(const ChooserTypeNameEntry* chooser_type, |
| + const base::ListValue* args); |
| + |
| // Callbacks used by the page ------------------------------------------------ |
| // Sets the default value for a specific content type. |args| includes the |
| @@ -227,7 +242,9 @@ class ContentSettingsHandler : public OptionsPageUIHandler, |
| // Returns exceptions constructed from the policy-set allowed URLs |
| // for the content settings |type| mic or camera. |
| - scoped_ptr<base::ListValue> GetPolicyAllowedUrls(ContentSettingsType type); |
| + void GetPolicyAllowedUrls( |
| + ContentSettingsType type, |
| + std::vector<scoped_ptr<base::DictionaryValue>>* exceptions); |
| // Fills in |exceptions| with Values for the given |type| from |map|. |
| void GetExceptionsFromHostContentSettingsMap( |