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

Side by Side Diff: content/common/frame_replication_state.h

Issue 837283003: Start replicating sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Nasko's nit Created 5 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 unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_FRAME_REPLICATION_STATE_H_ 5 #ifndef CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ 6 #define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "url/origin.h" 9 #include "url/origin.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // This structure holds information that needs to be replicated from a 13 // Sandboxing flags for iframes. These flags are set via an iframe's "sandbox"
14 // RenderFrame to any of its associated RenderFrameProxies. 14 // attribute in the renderer process and forwarded to the browser process,
15 // which replicates them to other processes as needed. For a list of sandbox
16 // flags, see
17 // http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox
18 // Must be kept in sync with blink::WebSandboxFlags. Enforced in
19 // render_frame_impl.cc.
20 enum class SandboxFlags : int {
21 NONE = 0,
22 NAVIGATION = 1,
23 PLUGINS = 1 << 1,
24 ORIGIN = 1 << 2,
25 FORMS = 1 << 3,
26 SCRIPTS = 1 << 4,
27 TOP_NAVIGATION = 1 << 5,
28 POPUPS = 1 << 6,
29 AUTOMATIC_FEATURES = 1 << 7,
30 POINTER_LOCK = 1 << 8,
31 DOCUMENT_DOMAIN = 1 << 9,
32 ORIENTATION_LOCK = 1 << 10,
33 ALL = -1
34 };
35
36 // This structure holds information that needs to be replicated between a
37 // RenderFrame and any of its associated RenderFrameProxies.
15 struct CONTENT_EXPORT FrameReplicationState { 38 struct CONTENT_EXPORT FrameReplicationState {
16 FrameReplicationState(); 39 FrameReplicationState();
17 ~FrameReplicationState(); 40 ~FrameReplicationState();
18 41
19 // Current serialized security origin of the frame. Unique origins are 42 // Current serialized security origin of the frame. Unique origins are
20 // represented as the string "null" per RFC 6454. 43 // represented as the string "null" per RFC 6454.
21 url::Origin origin; 44 url::Origin origin;
22 45
46 // Current sandbox flags of the frame.
47 SandboxFlags sandbox_flags;
48
23 // TODO(alexmos): Eventually, this structure can also hold other state that 49 // TODO(alexmos): Eventually, this structure can also hold other state that
24 // needs to be replicated, such as frame sizing info. 50 // needs to be replicated, such as frame sizing info.
25 }; 51 };
26 52
27 } // namespace content 53 } // namespace content
28 54
29 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ 55 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698