| OLD | NEW |
| 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 |
| OLD | NEW |