summaryrefslogtreecommitdiff
path: root/chromium/content/common/frame_replication_state.cc
blob: 00e835f5b920cb619b19e8106391b63e8dc133bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2014 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 "content/common/frame_replication_state.h"
#include "third_party/WebKit/public/web/WebSandboxFlags.h"
#include "third_party/WebKit/public/web/WebTreeScopeType.h"

namespace content {

FrameReplicationState::FrameReplicationState()
    : sandbox_flags(blink::WebSandboxFlags::None),
      scope(blink::WebTreeScopeType::Document),
      should_enforce_strict_mixed_content_checking(false),
      has_potentially_trustworthy_unique_origin(false) {}

FrameReplicationState::FrameReplicationState(
    blink::WebTreeScopeType scope,
    const std::string& name,
    const std::string& unique_name,
    blink::WebSandboxFlags sandbox_flags,
    bool should_enforce_strict_mixed_content_checking,
    bool has_potentially_trustworthy_unique_origin)
    : origin(),
      sandbox_flags(sandbox_flags),
      name(name),
      unique_name(unique_name),
      scope(scope),
      should_enforce_strict_mixed_content_checking(
          should_enforce_strict_mixed_content_checking),
      has_potentially_trustworthy_unique_origin(
          has_potentially_trustworthy_unique_origin) {}

FrameReplicationState::FrameReplicationState(
    const FrameReplicationState& other) = default;

FrameReplicationState::~FrameReplicationState() {
}

}  // namespace content