| 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/WebSandboxFlags.h" | 6 #include "third_party/WebKit/public/web/WebSandboxFlags.h" |
| 7 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 7 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 FrameReplicationState::FrameReplicationState() | 11 FrameReplicationState::FrameReplicationState() |
| 12 : sandbox_flags(blink::WebSandboxFlags::None), | 12 : sandbox_flags(blink::WebSandboxFlags::None), |
| 13 scope(blink::WebTreeScopeType::Document), | 13 scope(blink::WebTreeScopeType::Document), |
| 14 should_enforce_strict_mixed_content_checking(false), | 14 insecure_request_policy(blink::kLeaveInsecureRequestsAlone), |
| 15 has_potentially_trustworthy_unique_origin(false) {} | 15 has_potentially_trustworthy_unique_origin(false) {} |
| 16 | 16 |
| 17 FrameReplicationState::FrameReplicationState( | 17 FrameReplicationState::FrameReplicationState( |
| 18 blink::WebTreeScopeType scope, | 18 blink::WebTreeScopeType scope, |
| 19 const std::string& name, | 19 const std::string& name, |
| 20 const std::string& unique_name, | 20 const std::string& unique_name, |
| 21 blink::WebSandboxFlags sandbox_flags, | 21 blink::WebSandboxFlags sandbox_flags, |
| 22 bool should_enforce_strict_mixed_content_checking, | 22 blink::WebInsecureRequestPolicy insecure_request_policy, |
| 23 bool has_potentially_trustworthy_unique_origin) | 23 bool has_potentially_trustworthy_unique_origin) |
| 24 : origin(), | 24 : origin(), |
| 25 sandbox_flags(sandbox_flags), | 25 sandbox_flags(sandbox_flags), |
| 26 name(name), | 26 name(name), |
| 27 unique_name(unique_name), | 27 unique_name(unique_name), |
| 28 scope(scope), | 28 scope(scope), |
| 29 should_enforce_strict_mixed_content_checking( | 29 insecure_request_policy(insecure_request_policy), |
| 30 should_enforce_strict_mixed_content_checking), | |
| 31 has_potentially_trustworthy_unique_origin( | 30 has_potentially_trustworthy_unique_origin( |
| 32 has_potentially_trustworthy_unique_origin) {} | 31 has_potentially_trustworthy_unique_origin) {} |
| 33 | 32 |
| 34 FrameReplicationState::FrameReplicationState( | 33 FrameReplicationState::FrameReplicationState( |
| 35 const FrameReplicationState& other) = default; | 34 const FrameReplicationState& other) = default; |
| 36 | 35 |
| 37 FrameReplicationState::~FrameReplicationState() { | 36 FrameReplicationState::~FrameReplicationState() { |
| 38 } | 37 } |
| 39 | 38 |
| 40 } // namespace content | 39 } // namespace content |
| OLD | NEW |