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

Unified Diff: content/common/frame_replication_state.h

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failures for content:// URLs on Android Created 6 years 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_replication_state.h
diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..bde088b87d47ec39b0b0fbaeec4a0abe9646b61c
--- /dev/null
+++ b/content/common/frame_replication_state.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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_REPLICATION_STATE_H_
+#define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
+
+#include "content/common/content_export.h"
+#include "url/origin.h"
+
+namespace content {
+
+// This structure holds information that needs to be replicated from a
+// RenderFrame to any of its associated RenderFrameProxies.
+struct CONTENT_EXPORT FrameReplicationState {
+ FrameReplicationState();
+ ~FrameReplicationState();
+
+ // Current serialized security origin of the frame. Unique origins are
+ // represented as the string "null" per RFC 6454.
+ url::Origin origin;
+
+ // TODO(alexmos): Eventually, this structure can also hold other state that
+ // needs to be replicated, such as frame sizing info.
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
« 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