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

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

Issue 4687005: Track permissions granted to extensions in prefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: chrome/common/extensions/extension_extent.h
diff --git a/chrome/common/extensions/extension_extent.h b/chrome/common/extensions/extension_extent.h
index cb4641fa89dde38bca79f0847c258c3d07b69904..a5ac38111d66b5e724e618b47ad8280a3c806886 100644
--- a/chrome/common/extensions/extension_extent.h
+++ b/chrome/common/extensions/extension_extent.h
@@ -6,6 +6,8 @@
#define CHROME_COMMON_EXTENSIONS_EXTENSION_EXTENT_H_
#pragma once
+#include <set>
+#include <string>
#include <vector>
class GURL;
@@ -33,6 +35,8 @@ class ExtensionExtent {
// Returns true if there is a single URL that would be in two extents.
bool OverlapsWith(const ExtensionExtent& other) const;
+ // Gets the pattern list as a set of strings.
+ void GetAsStringSet(std::set<std::string>* string_patterns) const;
private:
// The list of URL patterns that comprise the extent.
PatternList patterns_;

Powered by Google App Engine
This is Rietveld 408576698