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

Side by Side 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: Fix typo 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/frame_replication_state.h" 5 #include "content/common/frame_replication_state.h"
6 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
6 7
7 namespace content { 8 namespace content {
8 9
9 FrameReplicationState::FrameReplicationState() 10 FrameReplicationState::FrameReplicationState()
10 : FrameReplicationState("", SandboxFlags::NONE) { 11 : sandbox_flags(SandboxFlags::NONE),
12 scope(blink::WebTreeScopeType::Document) {
11 } 13 }
12 14
13 FrameReplicationState::FrameReplicationState(const std::string& name, 15 FrameReplicationState::FrameReplicationState(blink::WebTreeScopeType scope,
16 const std::string& name,
14 SandboxFlags sandbox_flags) 17 SandboxFlags sandbox_flags)
15 : origin(), sandbox_flags(sandbox_flags), name(name) { 18 : origin(), sandbox_flags(sandbox_flags), name(name), scope(scope) {
16 } 19 }
17 20
18 FrameReplicationState::~FrameReplicationState() { 21 FrameReplicationState::~FrameReplicationState() {
19 } 22 }
20 23
21 } // namespace content 24 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698