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

Side by Side Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 475193002: Add a single site view page to view and modify content settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 4 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
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 // Maps hostnames to custom content settings. Written on the UI thread and read 5 // Maps hostnames to custom content settings. Written on the UI thread and read
6 // on any thread. One instance per profile. 6 // on any thread. One instance per profile.
7 7
8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // |resource_identifier|. Setting the value to NULL causes the default value 141 // |resource_identifier|. Setting the value to NULL causes the default value
142 // for that type to be used when loading pages matching this pattern. 142 // for that type to be used when loading pages matching this pattern.
143 // 143 //
144 // Takes ownership of the passed value. 144 // Takes ownership of the passed value.
145 void SetWebsiteSetting(const ContentSettingsPattern& primary_pattern, 145 void SetWebsiteSetting(const ContentSettingsPattern& primary_pattern,
146 const ContentSettingsPattern& secondary_pattern, 146 const ContentSettingsPattern& secondary_pattern,
147 ContentSettingsType content_type, 147 ContentSettingsType content_type,
148 const std::string& resource_identifier, 148 const std::string& resource_identifier,
149 base::Value* value); 149 base::Value* value);
150 150
151 // Sets the most specific rule that currently defines the permission for the
152 // given permission type.
153 void SetNarrowestWebsiteSetting(
154 const ContentSettingsPattern& primary_pattern,
155 const ContentSettingsPattern& secondary_pattern,
156 ContentSettingsType content_type,
157 const std::string& resource_identifier,
158 ContentSetting setting,
159 content_settings::SettingInfo existing_info);
160
151 // Convenience method to add a content setting for the given URLs, making sure 161 // Convenience method to add a content setting for the given URLs, making sure
152 // that there is no setting overriding it. 162 // that there is no setting overriding it.
153 // 163 //
154 // This should only be called on the UI thread. 164 // This should only be called on the UI thread.
155 void AddExceptionForURL(const GURL& primary_url, 165 void AddExceptionForURL(const GURL& primary_url,
156 const GURL& secondary_url, 166 const GURL& secondary_url,
157 ContentSettingsType content_type, 167 ContentSettingsType content_type,
158 ContentSetting setting); 168 ContentSetting setting);
159 169
160 // Clears all host-specific settings for one content type. 170 // Clears all host-specific settings for one content type.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // time and by RegisterExtensionService, both of which should happen 314 // time and by RegisterExtensionService, both of which should happen
305 // before any other uses of it. 315 // before any other uses of it.
306 ProviderMap content_settings_providers_; 316 ProviderMap content_settings_providers_;
307 317
308 ObserverList<content_settings::Observer> observers_; 318 ObserverList<content_settings::Observer> observers_;
309 319
310 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 320 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
311 }; 321 };
312 322
313 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 323 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698