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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 // 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 HostContentSettingsMap(PrefService* prefs, bool incognito); 54 HostContentSettingsMap(PrefService* prefs, bool incognito);
55 55
56 #if defined(ENABLE_EXTENSIONS) 56 #if defined(ENABLE_EXTENSIONS)
57 // In some cases, the ExtensionService is not available at the time the 57 // In some cases, the ExtensionService is not available at the time the
58 // HostContentSettingsMap is constructed. In these cases, we register the 58 // HostContentSettingsMap is constructed. In these cases, we register the
59 // service once it's available. 59 // service once it's available.
60 void RegisterExtensionService(ExtensionService* extension_service); 60 void RegisterExtensionService(ExtensionService* extension_service);
61 #endif 61 #endif
62 62
63 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 63 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
64 64
65 // Returns the default setting for a particular content type. If |provider_id| 65 // Returns the default setting for a particular content type. If |provider_id|
66 // is not NULL, the id of the provider which provided the default setting is 66 // is not NULL, the id of the provider which provided the default setting is
67 // assigned to it. 67 // assigned to it.
68 // 68 //
69 // This may be called on any thread. 69 // This may be called on any thread.
70 ContentSetting GetDefaultContentSetting(ContentSettingsType content_type, 70 ContentSetting GetDefaultContentSetting(ContentSettingsType content_type,
71 std::string* provider_id) const; 71 std::string* provider_id) const;
72 72
73 // Returns a single |ContentSetting| which applies to the given URLs. Note 73 // Returns a single |ContentSetting| which applies to the given URLs. Note
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 // Content setting providers. This is only modified at construction 258 // Content setting providers. This is only modified at construction
259 // time and by RegisterExtensionService, both of which should happen 259 // time and by RegisterExtensionService, both of which should happen
260 // before any other uses of it. 260 // before any other uses of it.
261 ProviderMap content_settings_providers_; 261 ProviderMap content_settings_providers_;
262 262
263 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); 263 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap);
264 }; 264 };
265 265
266 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ 266 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/cookie_settings.cc ('k') | chrome/browser/content_settings/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698