| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ |
| 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 scoped_ptr<RuleIterator> GetRuleIterator( | 54 scoped_ptr<RuleIterator> GetRuleIterator( |
| 55 const ResourceIdentifier& resource_identifier, | 55 const ResourceIdentifier& resource_identifier, |
| 56 bool incognito) const; | 56 bool incognito) const; |
| 57 | 57 |
| 58 bool SetWebsiteSetting(const ContentSettingsPattern& primary_pattern, | 58 bool SetWebsiteSetting(const ContentSettingsPattern& primary_pattern, |
| 59 const ContentSettingsPattern& secondary_pattern, | 59 const ContentSettingsPattern& secondary_pattern, |
| 60 const ResourceIdentifier& resource_identifier, | 60 const ResourceIdentifier& resource_identifier, |
| 61 base::Value* value); | 61 base::Value* value); |
| 62 | 62 |
| 63 void ClearPref(); |
| 64 |
| 63 void ClearAllContentSettingsRules(); | 65 void ClearAllContentSettingsRules(); |
| 64 | 66 |
| 65 void UpdateLastUsage(const ContentSettingsPattern& primary_pattern, | 67 void UpdateLastUsage(const ContentSettingsPattern& primary_pattern, |
| 66 const ContentSettingsPattern& secondary_pattern, | 68 const ContentSettingsPattern& secondary_pattern, |
| 67 base::Clock* clock); | 69 base::Clock* clock); |
| 68 | 70 |
| 69 base::Time GetLastUsage(const ContentSettingsPattern& primary_pattern, | 71 base::Time GetLastUsage(const ContentSettingsPattern& primary_pattern, |
| 70 const ContentSettingsPattern& secondary_pattern); | 72 const ContentSettingsPattern& secondary_pattern); |
| 71 | 73 |
| 72 size_t GetNumExceptions(); | 74 size_t GetNumExceptions(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 mutable base::Lock lock_; | 134 mutable base::Lock lock_; |
| 133 | 135 |
| 134 base::ThreadChecker thread_checker_; | 136 base::ThreadChecker thread_checker_; |
| 135 | 137 |
| 136 DISALLOW_COPY_AND_ASSIGN(ContentSettingsPref); | 138 DISALLOW_COPY_AND_ASSIGN(ContentSettingsPref); |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 } // namespace content_settings | 141 } // namespace content_settings |
| 140 | 142 |
| 141 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ | 143 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_PREF_H_ |
| OLD | NEW |