| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ | 6 #define CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // This enum specifies flag values for the types of JavaScript bindings exposed | 10 // This enum specifies flag values for the types of JavaScript bindings exposed |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // Bindings that allows the JS content to access Mojo system API and | 25 // Bindings that allows the JS content to access Mojo system API and |
| 26 // ServiceRegistry modules. The system API modules are defined in | 26 // ServiceRegistry modules. The system API modules are defined in |
| 27 // //mojo/public/js and provide the ability to create Mojo primitives such as | 27 // //mojo/public/js and provide the ability to create Mojo primitives such as |
| 28 // message and data pipes. The ServiceRegistry module (see | 28 // message and data pipes. The ServiceRegistry module (see |
| 29 // //content/renderer/mojo/service_registry_js_wrapper.h) in turn allows these | 29 // //content/renderer/mojo/service_registry_js_wrapper.h) in turn allows these |
| 30 // Mojo primitives to be used to connect to named services exposed either by | 30 // Mojo primitives to be used to connect to named services exposed either by |
| 31 // the browser or testing code. These bindings should not be exposed to | 31 // the browser or testing code. These bindings should not be exposed to |
| 32 // normal web contents and are intended only for use with WebUI and layout | 32 // normal web contents and are intended only for use with WebUI and layout |
| 33 // tests. | 33 // tests. |
| 34 BINDINGS_POLICY_MOJO = 1 << 3, | 34 BINDINGS_POLICY_MOJO = 1 << 3, |
| 35 // Similar to BINDINGS_POLICY_MOJO except it's intended for use by | 35 // Bindings that allows main world JS content within a HeadlessWebContents to |
| 36 // HeadlessWebContents. | 36 // access the headless::TabSocket API. |
| 37 BINDINGS_POLICY_HEADLESS = 1 << 4, | 37 BINDINGS_POLICY_HEADLESS_MAIN_WORLD = 1 << 4, |
| 38 // Similar to BINDINGS_POLICY_HEADLESS_MAIN_WORLD except it's intended allow |
| 39 // access only from within DevTools created isolated worlds. |
| 40 BINDINGS_POLICY_HEADLESS_ISOLATED_WORLD = 1 << 5, |
| 38 }; | 41 }; |
| 39 | |
| 40 } | 42 } |
| 41 | 43 |
| 42 #endif // CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ | 44 #endif // CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ |
| OLD | NEW |