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

Side by Side Diff: content/public/common/bindings_policy.h

Issue 2873283002: [Reland] Allow headless TabSocket in isolated worlds & remove obsolete logic (Closed)
Patch Set: More tests Created 3 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 unified diff | Download patch
OLDNEW
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
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 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.
36 // HeadlessWebContents. 36 // 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 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.
40 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
38 }; 41 };
39
40 } 42 }
41 43
42 #endif // CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_ 44 #endif // CONTENT_PUBLIC_COMMON_BINDINGS_POLICY_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/mojo_bindings_controller.h » ('j') | headless/lib/browser/headless_web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698