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

Unified Diff: content/public/browser/child_process_security_policy.h

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ken Created 6 years, 5 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: content/public/browser/child_process_security_policy.h
diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
index 261bf58f1810ee8d559a83149a44b222f2c8039b..d4d84b79b096219018e40f47fc964b47a0c1bed9 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -145,6 +145,11 @@ class ChildProcessSecurityPolicy {
// Returns true if delete-from access has been granted to |filesystem_id|.
virtual bool CanDeleteFromFileSystem(int child_id,
const std::string& filesystem_id) = 0;
+
+ // Returns true if the specified child_id has been granted WebUIBindings.
Charlie Reis 2014/07/22 21:10:24 nit: WebUI bindings (same below) (I realize it's
not at google - send to devlin 2014/07/22 23:42:32 Done.
+ // The browser should check this property before assuming the child process is
+ // allowed to use WebUIBindings.
+ virtual bool HasWebUIBindings(int child_id) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698