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

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: Address comments 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
+// 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