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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 11150002: New post-sideload UI: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: !!! Created 8 years, 2 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) 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
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 scoped_ptr<ExtensionSorting> extension_sorting_; 582 scoped_ptr<ExtensionSorting> extension_sorting_;
579 583
580 scoped_refptr<ContentSettingsStore> content_settings_store_; 584 scoped_refptr<ContentSettingsStore> content_settings_store_;
581 585
582 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 586 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
583 }; 587 };
584 588
585 } // namespace extensions 589 } // namespace extensions
586 590
587 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 591 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698