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

Side by Side Diff: chrome/browser/content_settings/content_settings_policy_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_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ContentSettingsType content_type, 85 ContentSettingsType content_type,
86 const ResourceIdentifier& resource_identifier, 86 const ResourceIdentifier& resource_identifier,
87 ContentSetting content_setting); 87 ContentSetting content_setting);
88 88
89 virtual ContentSetting GetContentSetting( 89 virtual ContentSetting GetContentSetting(
90 const GURL& primary_url, 90 const GURL& primary_url,
91 const GURL& secondary_url, 91 const GURL& secondary_url,
92 ContentSettingsType content_type, 92 ContentSettingsType content_type,
93 const ResourceIdentifier& resource_identifier) const; 93 const ResourceIdentifier& resource_identifier) const;
94 94
95 virtual Value* GetContentSettingValue(
96 const GURL& primary_url,
97 const GURL& secondary_url,
98 ContentSettingsType content_type,
99 const ResourceIdentifier& resource_identifier) const;
100
95 virtual void GetAllContentSettingsRules( 101 virtual void GetAllContentSettingsRules(
96 ContentSettingsType content_type, 102 ContentSettingsType content_type,
97 const ResourceIdentifier& resource_identifier, 103 const ResourceIdentifier& resource_identifier,
98 Rules* content_setting_rules) const; 104 Rules* content_setting_rules) const;
99 105
100 virtual void ClearAllContentSettingsRules( 106 virtual void ClearAllContentSettingsRules(
101 ContentSettingsType content_type); 107 ContentSettingsType content_type);
102 108
103 virtual void ShutdownOnUIThread(); 109 virtual void ShutdownOnUIThread();
104 110
(...skipping 29 matching lines...) Expand all
134 // Used around accesses to the content_settings_ object to guarantee 140 // Used around accesses to the content_settings_ object to guarantee
135 // thread safety. 141 // thread safety.
136 mutable base::Lock lock_; 142 mutable base::Lock lock_;
137 143
138 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 144 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
139 }; 145 };
140 146
141 } // namespace content_settings 147 } // namespace content_settings
142 148
143 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 149 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698