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

Unified Diff: chrome/common/extensions/extension_set.h

Issue 11415216: Make Blacklist::IsBlacklist asynchronous (it will need to be for safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another test Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_set.h
diff --git a/chrome/common/extensions/extension_set.h b/chrome/common/extensions/extension_set.h
index 072feffe694db796dbe36da8df6bc3d3aa89c9f0..2cc553e3d634767af9a4d06c666cce2f6b1d8566 100644
--- a/chrome/common/extensions/extension_set.h
+++ b/chrome/common/extensions/extension_set.h
@@ -90,7 +90,8 @@ class ExtensionSet {
bool InsertAll(const ExtensionSet& extensions);
// Removes the specified extension.
- void Remove(const std::string& id);
+ // Returns true if the set contained the specified extnesion.
+ bool Remove(const std::string& id);
// Removes all extensions.
void Clear();
@@ -123,6 +124,9 @@ class ExtensionSet {
// Look up an Extension object by id.
const extensions::Extension* GetByID(const std::string& id) const;
+ // Gets the IDs of all extensions in the set.
+ std::set<std::string> GetIDs() const;
+
// Returns true if |info| should get extension api bindings and be permitted
// to make api calls. Note that this is independent of what extension
// permissions the given extension has been granted.
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698