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

Unified Diff: chrome/common/pepper_permission_util.h

Issue 264923011: Add a whitelist check for nacl-nonsfi mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add includes (windows compile fail) Created 6 years, 7 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/pepper_permission_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pepper_permission_util.h
diff --git a/chrome/common/pepper_permission_util.h b/chrome/common/pepper_permission_util.h
index 58a20e5fb16cc5b20bc136c9fb12c696557bb4a4..208e1dae4711a453f12e8b5d3069092f1a0232e0 100644
--- a/chrome/common/pepper_permission_util.h
+++ b/chrome/common/pepper_permission_util.h
@@ -17,6 +17,11 @@ class ExtensionSet;
namespace chrome {
// Returns true if the extension (or an imported module if any) is whitelisted.
+// Module imports are at most one level deep (ie, a module that exports cannot
+// import another extension). The extension is identified by the host of |url|
+// (if it is a chrome-extension URL). |extension_set| is the list of installed
+// and enabled extensions for a given profile. |whitelist| is a set of
+// (possibly hashed) extension IDs to check against.
bool IsExtensionOrSharedModuleWhitelisted(
const GURL& url,
const extensions::ExtensionSet* extension_set,
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/pepper_permission_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698