forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathframe_replication_state.cc
50 lines (42 loc) · 1.88 KB
/
frame_replication_state.cc
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
41
42
43
44
45
46
47
48
49
50
// 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/blink/public/common/frame/sandbox_flags.h"
#include "third_party/blink/public/web/web_tree_scope_type.h"
namespace content {
FrameReplicationState::FrameReplicationState()
: active_sandbox_flags(blink::WebSandboxFlags::kNone),
scope(blink::WebTreeScopeType::kDocument),
insecure_request_policy(blink::kLeaveInsecureRequestsAlone),
has_potentially_trustworthy_unique_origin(false),
has_received_user_gesture(false),
has_received_user_gesture_before_nav(false) {}
FrameReplicationState::FrameReplicationState(
blink::WebTreeScopeType scope,
const std::string& name,
const std::string& unique_name,
blink::WebInsecureRequestPolicy insecure_request_policy,
const std::vector<uint32_t>& insecure_navigations_set,
bool has_potentially_trustworthy_unique_origin,
bool has_received_user_gesture,
bool has_received_user_gesture_before_nav,
blink::FrameOwnerElementType owner_type)
: origin(),
name(name),
unique_name(unique_name),
active_sandbox_flags(blink::WebSandboxFlags::kNone),
scope(scope),
insecure_request_policy(insecure_request_policy),
insecure_navigations_set(insecure_navigations_set),
has_potentially_trustworthy_unique_origin(
has_potentially_trustworthy_unique_origin),
has_received_user_gesture(has_received_user_gesture),
has_received_user_gesture_before_nav(
has_received_user_gesture_before_nav),
frame_owner_element_type(owner_type) {}
FrameReplicationState::FrameReplicationState(
const FrameReplicationState& other) = default;
FrameReplicationState::~FrameReplicationState() {
}
} // namespace content