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

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: Update example value of AutoSelectCertificate policy in policy_template.json 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // NotificationObserver implementation. 111 // NotificationObserver implementation.
112 virtual void Observe(int type, 112 virtual void Observe(int type,
113 const NotificationSource& source, 113 const NotificationSource& source,
114 const NotificationDetails& details); 114 const NotificationDetails& details);
115 private: 115 private:
116 void ReadManagedContentSettings(bool overwrite); 116 void ReadManagedContentSettings(bool overwrite);
117 117
118 void GetContentSettingsFromPreferences(OriginIdentifierValueMap* rules); 118 void GetContentSettingsFromPreferences(OriginIdentifierValueMap* rules);
119 119
120 void GetAutoSelectCertificateSettingsFromPreferences(
121 OriginIdentifierValueMap* value_map);
122
120 void ReadManagedContentSettingsTypes(ContentSettingsType content_type); 123 void ReadManagedContentSettingsTypes(ContentSettingsType content_type);
121 124
122 OriginIdentifierValueMap value_map_; 125 OriginIdentifierValueMap value_map_;
123 126
124 PrefService* prefs_; 127 PrefService* prefs_;
125 128
126 // Weak, owned by HostContentSettingsMap. 129 // Weak, owned by HostContentSettingsMap.
127 DefaultProviderInterface* default_provider_; 130 DefaultProviderInterface* default_provider_;
128 131
129 PrefChangeRegistrar pref_change_registrar_; 132 PrefChangeRegistrar pref_change_registrar_;
130 133
131 // Used around accesses to the content_settings_ object to guarantee 134 // Used around accesses to the content_settings_ object to guarantee
132 // thread safety. 135 // thread safety.
133 mutable base::Lock lock_; 136 mutable base::Lock lock_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 138 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
136 }; 139 };
137 140
138 } // namespace content_settings 141 } // namespace content_settings
139 142
140 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 143 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698