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

Unified Diff: content/common/frame_owner_properties.h

Issue 2146803004: Create a content::FrameOwnerProperties struct for IPC transport of WebFrameOwnerProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Transport Created 4 years, 5 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_owner_properties.h
diff --git a/content/common/frame_owner_properties.h b/content/common/frame_owner_properties.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d0cf7d7d10a6e5d0351dda60fb92ba67f57c958
--- /dev/null
+++ b/content/common/frame_owner_properties.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_FRAME_OWNER_PROPERTIES_H_
+#define CONTENT_COMMON_FRAME_OWNER_PROPERTIES_H_
+
+#include <vector>
+
+#include "third_party/WebKit/public/platform/modules/permissions/WebPermissionType.h"
+#include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
+
+namespace content {
+
+// Used for IPC transport of WebFrameOwnerProperties.
alexmos 2016/07/14 23:44:13 Maybe expand this comment to explain why WebFrameO
raymes 2016/07/18 03:39:28 Done.
+struct FrameOwnerProperties {
+ FrameOwnerProperties();
+ FrameOwnerProperties(const FrameOwnerProperties& other);
+ explicit FrameOwnerProperties(
+ const blink::WebFrameOwnerProperties& web_frame_owner_properties);
+ ~FrameOwnerProperties();
+
+ blink::WebFrameOwnerProperties ToWebFrameOwnerProperties() const;
+
+ blink::WebFrameOwnerProperties::ScrollingMode scrolling_mode;
+ int margin_width;
+ int margin_height;
+ bool allow_fullscreen;
+ std::vector<blink::WebPermissionType> delegated_permissions;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_FRAME_OWNER_PROPERTIES_H_

Powered by Google App Engine
This is Rietveld 408576698