| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "third_party/blink/public/common/frame/frame_policy.h" |
| #include "services/network/public/mojom/web_sandbox_flags.mojom-shared.h" |
| |
| namespace blink { |
| |
| FramePolicy::FramePolicy() |
| : sandbox_flags(network::mojom::WebSandboxFlags::kNone), |
| container_policy({}), |
| required_document_policy({}), |
| disallow_document_access(false) {} |
| |
| FramePolicy::FramePolicy( |
| network::mojom::WebSandboxFlags sandbox_flags, |
| const ParsedFeaturePolicy& container_policy, |
| const DocumentPolicyFeatureState& required_document_policy, |
| bool disallow_document_access) |
| : sandbox_flags(sandbox_flags), |
| container_policy(container_policy), |
| required_document_policy(required_document_policy), |
| disallow_document_access(disallow_document_access) {} |
| |
| FramePolicy::FramePolicy(const FramePolicy& lhs) = default; |
| |
| FramePolicy::~FramePolicy() = default; |
| |
| } // namespace blink |