Chromium Code Reviews| 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 |
| 10 // 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
| |
| 11 // here. | |
| 9 FrameReplicationState::FrameReplicationState() | 12 FrameReplicationState::FrameReplicationState() |
| 10 : FrameReplicationState("", SandboxFlags::NONE) { | 13 : FrameReplicationState(blink::WebTreeScopeType::Document, |
| 14 std::string(), | |
| 15 SandboxFlags::NONE) { | |
| 11 } | 16 } |
| 12 | 17 |
| 13 FrameReplicationState::FrameReplicationState(const std::string& name, | 18 FrameReplicationState::FrameReplicationState(blink::WebTreeScopeType scope, |
| 19 const std::string& name, | |
| 14 SandboxFlags sandbox_flags) | 20 SandboxFlags sandbox_flags) |
| 15 : origin(), sandbox_flags(sandbox_flags), name(name) { | 21 : origin(), sandbox_flags(sandbox_flags), name(name), scope(scope) { |
| 16 } | 22 } |
| 17 | 23 |
| 18 FrameReplicationState::~FrameReplicationState() { | 24 FrameReplicationState::~FrameReplicationState() { |
| 19 } | 25 } |
| 20 | 26 |
| 21 } // namespace content | 27 } // namespace content |
| OLD | NEW |