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

Unified Diff: content/common/frame_replication_state.cc

Issue 1141283002: Replicate whether a frame is in a document or shadow tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops Created 5 years, 7 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.cc
diff --git a/content/common/frame_replication_state.cc b/content/common/frame_replication_state.cc
index 1c1530ca89d3e96dae332470b2f576f4795df140..c78a15ea159e247854c8480dfbd47caf1c0b204b 100644
--- a/content/common/frame_replication_state.cc
+++ b/content/common/frame_replication_state.cc
@@ -3,16 +3,22 @@
// found in the LICENSE file.
#include "content/common/frame_replication_state.h"
+#include "third_party/WebKit/public/web/WebTreeScopeType.h"
namespace content {
+// TODO(dcheng): I'm not sure it's ever right to not pass a tree scope type
Charlie Reis 2015/05/19 23:17:10 I don't see the concern. Are you worried that som
dcheng 2015/05/20 00:09:30 Yes. I wanted to investigate this in a follow up t
Charlie Reis 2015/05/20 21:38:40 Can we answer it now? I feel like this is likely
dcheng 2015/05/21 18:16:16 While I personally prefer to see this explicitly s
+// here.
FrameReplicationState::FrameReplicationState()
- : FrameReplicationState("", SandboxFlags::NONE) {
+ : FrameReplicationState(blink::WebTreeScopeType::Document,
+ std::string(),
+ SandboxFlags::NONE) {
}
-FrameReplicationState::FrameReplicationState(const std::string& name,
+FrameReplicationState::FrameReplicationState(blink::WebTreeScopeType scope,
+ const std::string& name,
SandboxFlags sandbox_flags)
- : origin(), sandbox_flags(sandbox_flags), name(name) {
+ : origin(), sandbox_flags(sandbox_flags), name(name), scope(scope) {
}
FrameReplicationState::~FrameReplicationState() {

Powered by Google App Engine
This is Rietveld 408576698