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

Side by Side 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: Created 6 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_FRAME_REPLICATION_STATE_H_
6 #define CONTENT_FRAME_REPLICATION_STATE_H_
7
8 #include "content/common/content_export.h"
9 #include "url/origin.h"
10
11 namespace content {
12
13 // This structure holds information that needs to be replicated from a local
Charlie Reis 2014/11/13 18:00:58 Let's use the content names for LocalFrame and Rem
alexmos 2014/11/18 18:25:32 Done.
14 // frame to any of its associated remote frames.
15 struct CONTENT_EXPORT FrameReplicationState {
16 FrameReplicationState();
17 ~FrameReplicationState();
18
19 // Current security origin of the frame (can be empty for unique origins).
20 url::Origin origin;
alexmos 2014/11/12 00:05:47 Is using url::Origin the right thing here? Althou
Charlie Reis 2014/11/13 18:00:58 Hmm, I agree that url::Origin seems a bit limited
alexmos 2014/11/18 18:25:32 After our discussion, and reading the discussion o
21
22 // Whether the origin is unique.
23 bool is_unique_origin;
24
25 // TODO(alexmos): Add other properties of SecurityOrigins, such as
26 // SandboxFlags. Eventually, this structure can also hold other state that
27 // needs to be replicated, such as frame sizing info.
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_FRAME_REPLICATION_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698