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

Unified Diff: extensions/common/extension_set.cc

Issue 988633003: Refactoring: de-couple Extensions from "script injection System" [render side]:4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/extension_set.cc
diff --git a/extensions/common/extension_set.cc b/extensions/common/extension_set.cc
index c4c15d4e1f2bc3b8f291f590f7be0b109a21583e..fe3e4dff227b40fe5f682421bb8cddcc37348e98 100644
--- a/extensions/common/extension_set.cc
+++ b/extensions/common/extension_set.cc
@@ -9,6 +9,7 @@
#include "base/stl_util.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
+#include "extensions/common/host_id.h"
#include "extensions/common/manifest_handlers/sandboxed_page_info.h"
namespace extensions {
@@ -138,6 +139,14 @@ ExtensionIdSet ExtensionSet::GetIDs() const {
return ids;
}
+std::set<HostID> ExtensionSet::GetHostIDs() const {
+ std::set<HostID> ids;
+ for (ExtensionMap::const_iterator it = extensions_.begin();
+ it != extensions_.end(); ++it) {
+ ids.insert(HostID(HostID::EXTENSIONS, it->first));
+ }
+ return ids;
+}
bool ExtensionSet::ExtensionBindingsAllowed(const GURL& url) const {
if (url.SchemeIs(kExtensionScheme))
return true;

Powered by Google App Engine
This is Rietveld 408576698