OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 // Returns base extensions install directory. | 167 // Returns base extensions install directory. |
168 const FilePath& install_directory() const { return install_directory_; } | 168 const FilePath& install_directory() const { return install_directory_; } |
169 | 169 |
170 // Updates the prefs based on the blacklist. | 170 // Updates the prefs based on the blacklist. |
171 void UpdateBlacklist(const std::set<std::string>& blacklist_set); | 171 void UpdateBlacklist(const std::set<std::string>& blacklist_set); |
172 | 172 |
173 // Based on extension id, checks prefs to see if it is orphaned. | 173 // Based on extension id, checks prefs to see if it is orphaned. |
174 bool IsExtensionOrphaned(const std::string& id); | 174 bool IsExtensionOrphaned(const std::string& id); |
175 | 175 |
| 176 // Increment the count of how many times we prompted the user to acknowledge |
| 177 // the given extension, and return the new count. |
| 178 int IncrementAcknowledgePromptCount(const std::string& extension_id); |
| 179 |
176 // Whether the user has acknowledged an external extension. | 180 // Whether the user has acknowledged an external extension. |
177 bool IsExternalExtensionAcknowledged(const std::string& extension_id); | 181 bool IsExternalExtensionAcknowledged(const std::string& extension_id); |
178 void AcknowledgeExternalExtension(const std::string& extension_id); | 182 void AcknowledgeExternalExtension(const std::string& extension_id); |
179 | 183 |
180 // Whether the user has acknowledged a blacklisted extension. | 184 // Whether the user has acknowledged a blacklisted extension. |
181 bool IsBlacklistedExtensionAcknowledged(const std::string& extension_id); | 185 bool IsBlacklistedExtensionAcknowledged(const std::string& extension_id); |
182 void AcknowledgeBlacklistedExtension(const std::string& extension_id); | 186 void AcknowledgeBlacklistedExtension(const std::string& extension_id); |
183 | 187 |
184 // Whether the user has acknowledged an orphaned extension. | 188 // Whether the user has acknowledged an orphaned extension. |
185 bool IsOrphanedExtensionAcknowledged(const std::string& extension_id); | 189 bool IsOrphanedExtensionAcknowledged(const std::string& extension_id); |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 scoped_ptr<ExtensionSorting> extension_sorting_; | 575 scoped_ptr<ExtensionSorting> extension_sorting_; |
572 | 576 |
573 scoped_refptr<ContentSettingsStore> content_settings_store_; | 577 scoped_refptr<ContentSettingsStore> content_settings_store_; |
574 | 578 |
575 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 579 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
576 }; | 580 }; |
577 | 581 |
578 } // namespace extensions | 582 } // namespace extensions |
579 | 583 |
580 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 584 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |