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

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

Issue 6625076: Removing references to off the record in comments and log messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 10 #pragma once
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Returns all non-default ContentSettings which apply to a given URL. For 88 // Returns all non-default ContentSettings which apply to a given URL. For
89 // content setting types that require an additional resource identifier, 89 // content setting types that require an additional resource identifier,
90 // CONTENT_SETTING_DEFAULT is returned. 90 // CONTENT_SETTING_DEFAULT is returned.
91 // 91 //
92 // This may be called on any thread. 92 // This may be called on any thread.
93 ContentSettings GetNonDefaultContentSettings(const GURL& url) const; 93 ContentSettings GetNonDefaultContentSettings(const GURL& url) const;
94 94
95 // For a given content type, returns all patterns with a non-default setting, 95 // For a given content type, returns all patterns with a non-default setting,
96 // mapped to their actual settings, in lexicographical order. |settings| 96 // mapped to their actual settings, in lexicographical order. |settings|
97 // must be a non-NULL outparam. If this map was created for the 97 // must be a non-NULL outparam. If this map was created for the
98 // off-the-record profile, it will only return those settings differing from 98 // incognito profile, it will only return those settings differing from
99 // the main map. For ContentSettingsTypes that require an resource identifier 99 // the main map. For ContentSettingsTypes that require an resource identifier
100 // to be specified, the |resource_identifier| must be non-empty. 100 // to be specified, the |resource_identifier| must be non-empty.
101 // 101 //
102 // This may be called on any thread. 102 // This may be called on any thread.
103 void GetSettingsForOneType(ContentSettingsType content_type, 103 void GetSettingsForOneType(ContentSettingsType content_type,
104 const std::string& resource_identifier, 104 const std::string& resource_identifier,
105 SettingsForOneType* settings) const; 105 SettingsForOneType* settings) const;
106 106
107 // Sets the default setting for a particular content type. This method must 107 // Sets the default setting for a particular content type. This method must
108 // not be invoked on an off-the-record map. 108 // not be invoked on an incognito map.
109 // 109 //
110 // This should only be called on the UI thread. 110 // This should only be called on the UI thread.
111 void SetDefaultContentSetting(ContentSettingsType content_type, 111 void SetDefaultContentSetting(ContentSettingsType content_type,
112 ContentSetting setting); 112 ContentSetting setting);
113 113
114 // Sets the blocking setting for a particular pattern and content type. 114 // Sets the blocking setting for a particular pattern and content type.
115 // Setting the value to CONTENT_SETTING_DEFAULT causes the default setting 115 // Setting the value to CONTENT_SETTING_DEFAULT causes the default setting
116 // for that type to be used when loading pages matching this pattern. For 116 // for that type to be used when loading pages matching this pattern. For
117 // ContentSettingsTypes that require an resource identifier to be specified, 117 // ContentSettingsTypes that require an resource identifier to be specified,
118 // the |resource_identifier| must be non-empty. 118 // the |resource_identifier| must be non-empty.
(...skipping 20 matching lines...) Expand all
139 // This should only be called on the UI thread. 139 // This should only be called on the UI thread.
140 void ClearSettingsForOneType(ContentSettingsType content_type); 140 void ClearSettingsForOneType(ContentSettingsType content_type);
141 141
142 // This setting trumps any host-specific settings. 142 // This setting trumps any host-specific settings.
143 bool BlockThirdPartyCookies() const { return block_third_party_cookies_; } 143 bool BlockThirdPartyCookies() const { return block_third_party_cookies_; }
144 bool IsBlockThirdPartyCookiesManaged() const { 144 bool IsBlockThirdPartyCookiesManaged() const {
145 return is_block_third_party_cookies_managed_; 145 return is_block_third_party_cookies_managed_;
146 } 146 }
147 147
148 // Sets whether we block all third-party cookies. This method must not be 148 // Sets whether we block all third-party cookies. This method must not be
149 // invoked on an off-the-record map. 149 // invoked on an incognito map.
150 // 150 //
151 // This should only be called on the UI thread. 151 // This should only be called on the UI thread.
152 void SetBlockThirdPartyCookies(bool block); 152 void SetBlockThirdPartyCookies(bool block);
153 153
154 bool GetBlockNonsandboxedPlugins() const { 154 bool GetBlockNonsandboxedPlugins() const {
155 return block_nonsandboxed_plugins_; 155 return block_nonsandboxed_plugins_;
156 } 156 }
157 157
158 void SetBlockNonsandboxedPlugins(bool block); 158 void SetBlockNonsandboxedPlugins(bool block);
159 159
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 // Misc global settings. 212 // Misc global settings.
213 bool block_third_party_cookies_; 213 bool block_third_party_cookies_;
214 bool is_block_third_party_cookies_managed_; 214 bool is_block_third_party_cookies_managed_;
215 bool block_nonsandboxed_plugins_; 215 bool block_nonsandboxed_plugins_;
216 216
217 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 217 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
218 }; 218 };
219 219
220 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 220 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698