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

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: Fix GN Issue Created 3 years, 6 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
« no previous file with comments | « no previous file | content/renderer/mojo_bindings_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/mojo_bindings_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698