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

Unified Diff: content/public/common/bindings_policy.h

Issue 1470823002: Enable builtin Mojo JS modules in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing
Patch Set: add 'define' to global interface expectations for AMD in layout tests Created 4 years, 11 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/common/bindings_policy.h
diff --git a/content/public/common/bindings_policy.h b/content/public/common/bindings_policy.h
index 9a4745c4295cff5094e4030fdbdab723c6af1441..ee3b0e87efded12a71fb718dbe1dd81e3b7c6909 100644
--- a/content/public/common/bindings_policy.h
+++ b/content/public/common/bindings_policy.h
@@ -22,6 +22,16 @@ enum BindingsPolicy {
// metrics. (By default this isn't allowed unless the app has been started up
// with the --enable-stats-collection-bindings switch.)
BINDINGS_POLICY_STATS_COLLECTION = 1 << 2,
+ // Bindings that allows the JS content to access Mojo system API and
+ // ServiceRegistry modules. The system API modules are defined in
+ // //mojo/public/js and provide the ability to create Mojo primitives such as
+ // message and data pipes. The ServiceRegistry module (see
+ // //content/renderer/mojo/service_registry_js_wrapper.h) in turn allows these
+ // Mojo primitives to be used to connect to named services exposed either by
+ // the browser or testing code. These bindings should not be exposed to
+ // normal web contents and are intended only for use with WebUI and layout
+ // tests.
+ BINDINGS_POLICY_MOJO = 1 << 3,
};

Powered by Google App Engine
This is Rietveld 408576698