blob: 143cba89c9365516ece17a175679bdf93ba70277 [file] [log] [blame]
// 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({}),
allowed_to_download(true),
disallow_document_access(false) {}
FramePolicy::FramePolicy(
network::mojom::WebSandboxFlags sandbox_flags,
const ParsedFeaturePolicy& container_policy,
const DocumentPolicyFeatureState& required_document_policy,
bool allowed_to_download,
bool disallow_document_access)
: sandbox_flags(sandbox_flags),
container_policy(container_policy),
required_document_policy(required_document_policy),
allowed_to_download(allowed_to_download),
disallow_document_access(disallow_document_access) {}
FramePolicy::FramePolicy(const FramePolicy& lhs) = default;
FramePolicy::~FramePolicy() = default;
} // namespace blink