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

Unified Diff: content/common/frame_replication_state.h

Issue 797813006: Replicate sandbox flags for OOPIF (Chromium part 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iframe-sandbox-flags-part1
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: content/common/frame_replication_state.h
diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
index 736d052cc5aa412add256bf339b4bfe1ce8c99e9..46bf2f4fcb4f18befbf744dcf2c76ba3315d3ceb 100644
--- a/content/common/frame_replication_state.h
+++ b/content/common/frame_replication_state.h
@@ -33,6 +33,14 @@ enum class SandboxFlags : int {
ALL = -1
};
+inline SandboxFlags operator&(SandboxFlags a, SandboxFlags b) {
+ return static_cast<SandboxFlags>(static_cast<int>(a) & static_cast<int>(b));
+}
+
+inline SandboxFlags operator~(SandboxFlags flags) {
+ return static_cast<SandboxFlags>(~static_cast<int>(flags));
+}
+
// This structure holds information that needs to be replicated between a
// RenderFrame and any of its associated RenderFrameProxies.
struct CONTENT_EXPORT FrameReplicationState {

Powered by Google App Engine
This is Rietveld 408576698