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

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

Issue 7831004: Add a method to the content_settings::ProviderInterface to return the content settings Value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. 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_PREF_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 // A content settings provider that takes its settings out of the pref service. 9 // A content settings provider that takes its settings out of the pref service.
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 ContentSettingsType content_type, 111 ContentSettingsType content_type,
112 const ResourceIdentifier& resource_identifier, 112 const ResourceIdentifier& resource_identifier,
113 ContentSetting content_setting); 113 ContentSetting content_setting);
114 114
115 virtual ContentSetting GetContentSetting( 115 virtual ContentSetting GetContentSetting(
116 const GURL& primary_url, 116 const GURL& primary_url,
117 const GURL& secondary_url, 117 const GURL& secondary_url,
118 ContentSettingsType content_type, 118 ContentSettingsType content_type,
119 const ResourceIdentifier& resource_identifier) const; 119 const ResourceIdentifier& resource_identifier) const;
120 120
121 virtual Value* GetContentSettingValue(
122 const GURL& primary_url,
123 const GURL& secondary_url,
124 ContentSettingsType content_type,
125 const ResourceIdentifier& resource_identifier) const;
126
121 virtual void GetAllContentSettingsRules( 127 virtual void GetAllContentSettingsRules(
122 ContentSettingsType content_type, 128 ContentSettingsType content_type,
123 const ResourceIdentifier& resource_identifier, 129 const ResourceIdentifier& resource_identifier,
124 Rules* content_setting_rules) const; 130 Rules* content_setting_rules) const;
125 131
126 virtual void ClearAllContentSettingsRules( 132 virtual void ClearAllContentSettingsRules(
127 ContentSettingsType content_type); 133 ContentSettingsType content_type);
128 134
129 virtual void ShutdownOnUIThread(); 135 virtual void ShutdownOnUIThread();
130 136
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Used around accesses to the value map objects to guarantee 232 // Used around accesses to the value map objects to guarantee
227 // thread safety. 233 // thread safety.
228 mutable base::Lock lock_; 234 mutable base::Lock lock_;
229 235
230 DISALLOW_COPY_AND_ASSIGN(PrefProvider); 236 DISALLOW_COPY_AND_ASSIGN(PrefProvider);
231 }; 237 };
232 238
233 } // namespace content_settings 239 } // namespace content_settings
234 240
235 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_ 241 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PREF_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698