Chromium Code Reviews| Index: content/public/common/bindings_policy.h |
| diff --git a/content/public/common/bindings_policy.h b/content/public/common/bindings_policy.h |
| index 993c8201173ab15d5de25aa3137485b3f283ba03..dd324eadcded384371e8ffa742be1483df2c7784 100644 |
| --- a/content/public/common/bindings_policy.h |
| +++ b/content/public/common/bindings_policy.h |
| @@ -32,11 +32,13 @@ enum BindingsPolicy { |
| // normal web contents and are intended only for use with WebUI and layout |
| // tests. |
| BINDINGS_POLICY_MOJO = 1 << 3, |
| - // Similar to BINDINGS_POLICY_MOJO except it's intended for use by |
| - // HeadlessWebContents. |
| - BINDINGS_POLICY_HEADLESS = 1 << 4, |
| + // Bindings that allows the JS content within a HeadlessWebContents to access |
|
Sami
2017/05/12 17:18:02
"main world JS content"
alex clarke (OOO till 29th)
2017/05/15 09:50:57
Done.
|
| + // the headless::TabSocket API. |
| + BINDINGS_POLICY_HEADLESS_MAIN_WORLD = 1 << 4, |
| + // Similar to BINDINGS_POLICY_HEADLESS_MAIN_WORLD except it's intended allow |
| + // access from within DevTools created isolated worlds. |
|
Sami
2017/05/12 17:18:02
"access only from"
alex clarke (OOO till 29th)
2017/05/15 09:50:57
Done.
|
| + BINDINGS_POLICY_HEADLESS_ISOLATED_WORLD = 1 << 5, |
|
Sami
2017/05/12 17:18:02
Since these are only used and make sense in headle
alex clarke (OOO till 29th)
2017/05/15 09:50:57
That's a possibility however what if these values
Sami
2017/05/15 16:30:25
I meant since content/ doesn't look at these flags
alex clarke (OOO till 29th)
2017/05/16 10:21:23
The bindings policy is sent from browser to render
|
| }; |
| - |
| } |
| #endif // CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ |