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

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

Issue 7828022: Add a method to the HostContentSettings map to return the |Value| of a content setting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unrelated changes from patchset. Created 9 years, 3 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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 // A content settings provider that takes its settings out of policies. 9 // A content settings provider that takes its settings out of policies.
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ContentSettingsType, 119 ContentSettingsType,
120 ResourceIdentifier, 120 ResourceIdentifier,
121 ContentSetting> ContentSettingsRule; 121 ContentSetting> ContentSettingsRule;
122 122
123 typedef std::vector<ContentSettingsRule> ContentSettingsRules; 123 typedef std::vector<ContentSettingsRule> ContentSettingsRules;
124 124
125 void ReadManagedContentSettings(bool overwrite); 125 void ReadManagedContentSettings(bool overwrite);
126 126
127 void GetContentSettingsFromPreferences(ContentSettingsRules* rules); 127 void GetContentSettingsFromPreferences(ContentSettingsRules* rules);
128 128
129 void GetAutoSelectCertificateSettingsFromPreferences(
130 OriginIdentifierValueMap* value_map);
131
129 void ReadManagedContentSettingsTypes(ContentSettingsType content_type); 132 void ReadManagedContentSettingsTypes(ContentSettingsType content_type);
130 133
131 OriginIdentifierValueMap value_map_; 134 OriginIdentifierValueMap value_map_;
132 135
133 PrefService* prefs_; 136 PrefService* prefs_;
134 137
135 // Weak, owned by HostContentSettingsMap. 138 // Weak, owned by HostContentSettingsMap.
136 DefaultProviderInterface* default_provider_; 139 DefaultProviderInterface* default_provider_;
137 140
138 PrefChangeRegistrar pref_change_registrar_; 141 PrefChangeRegistrar pref_change_registrar_;
139 142
140 // Used around accesses to the content_settings_ object to guarantee 143 // Used around accesses to the content_settings_ object to guarantee
141 // thread safety. 144 // thread safety.
142 mutable base::Lock lock_; 145 mutable base::Lock lock_;
143 146
144 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 147 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
145 }; 148 };
146 149
147 } // namespace content_settings 150 } // namespace content_settings
148 151
149 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 152 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698