OLD | NEW |
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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 PLUGINS = 1 << 1, | 27 PLUGINS = 1 << 1, |
28 ORIGIN = 1 << 2, | 28 ORIGIN = 1 << 2, |
29 FORMS = 1 << 3, | 29 FORMS = 1 << 3, |
30 SCRIPTS = 1 << 4, | 30 SCRIPTS = 1 << 4, |
31 TOP_NAVIGATION = 1 << 5, | 31 TOP_NAVIGATION = 1 << 5, |
32 POPUPS = 1 << 6, | 32 POPUPS = 1 << 6, |
33 AUTOMATIC_FEATURES = 1 << 7, | 33 AUTOMATIC_FEATURES = 1 << 7, |
34 POINTER_LOCK = 1 << 8, | 34 POINTER_LOCK = 1 << 8, |
35 DOCUMENT_DOMAIN = 1 << 9, | 35 DOCUMENT_DOMAIN = 1 << 9, |
36 ORIENTATION_LOCK = 1 << 10, | 36 ORIENTATION_LOCK = 1 << 10, |
| 37 PROPAGATES_TO_AUXILIARY = 1 << 11, |
| 38 MODALS = 1 << 12, |
37 ALL = -1 | 39 ALL = -1 |
38 }; | 40 }; |
39 | 41 |
40 inline SandboxFlags operator&(SandboxFlags a, SandboxFlags b) { | 42 inline SandboxFlags operator&(SandboxFlags a, SandboxFlags b) { |
41 return static_cast<SandboxFlags>(static_cast<int>(a) & static_cast<int>(b)); | 43 return static_cast<SandboxFlags>(static_cast<int>(a) & static_cast<int>(b)); |
42 } | 44 } |
43 | 45 |
44 inline SandboxFlags operator~(SandboxFlags flags) { | 46 inline SandboxFlags operator~(SandboxFlags flags) { |
45 return static_cast<SandboxFlags>(~static_cast<int>(flags)); | 47 return static_cast<SandboxFlags>(~static_cast<int>(flags)); |
46 } | 48 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // operator. | 102 // operator. |
101 blink::WebTreeScopeType scope; | 103 blink::WebTreeScopeType scope; |
102 | 104 |
103 // TODO(alexmos): Eventually, this structure can also hold other state that | 105 // TODO(alexmos): Eventually, this structure can also hold other state that |
104 // needs to be replicated, such as frame sizing info. | 106 // needs to be replicated, such as frame sizing info. |
105 }; | 107 }; |
106 | 108 |
107 } // namespace content | 109 } // namespace content |
108 | 110 |
109 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ | 111 #endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_ |
OLD | NEW |