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/browser/frame_host/navigation_request_info.h"
#include "content/common/service_worker/service_worker_types.h"
#include "mojo/common/values_struct_traits.h"
namespace content {
NavigationRequestInfo::NavigationRequestInfo(
const CommonNavigationParams& common_params,
mojom::BeginNavigationParamsPtr begin_params,
const GURL& site_for_cookies,
bool is_main_frame,
bool parent_is_main_frame,
bool are_ancestors_secure,
int frame_tree_node_id,
bool is_for_guests_only,
bool report_raw_headers,
bool is_prerendering,
std::unique_ptr<network::SharedURLLoaderFactoryInfo>
blob_url_loader_factory)
: common_params(common_params),
begin_params(std::move(begin_params)),
site_for_cookies(site_for_cookies),
is_main_frame(is_main_frame),
parent_is_main_frame(parent_is_main_frame),
are_ancestors_secure(are_ancestors_secure),
frame_tree_node_id(frame_tree_node_id),
is_for_guests_only(is_for_guests_only),
report_raw_headers(report_raw_headers),
is_prerendering(is_prerendering),
blob_url_loader_factory(std::move(blob_url_loader_factory)) {}
NavigationRequestInfo::NavigationRequestInfo(const NavigationRequestInfo& other)
: common_params(other.common_params),
begin_params(other.begin_params.Clone()),
site_for_cookies(other.site_for_cookies),
is_main_frame(other.is_main_frame),
parent_is_main_frame(other.parent_is_main_frame),
are_ancestors_secure(other.are_ancestors_secure),
frame_tree_node_id(other.frame_tree_node_id),
is_for_guests_only(other.is_for_guests_only),
report_raw_headers(other.report_raw_headers),
is_prerendering(other.is_prerendering) {}
NavigationRequestInfo::~NavigationRequestInfo() {}
} // namespace content
|