blob: f02f9a18f6a3ada1319424c36a8072f2a8750d58 [file] [log] [blame]
[email protected]95b462c22014-07-16 05:02:091// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/browser/frame_host/navigation_request_info.h"
fdegans69788e12015-10-06 15:30:086#include "content/common/service_worker/service_worker_types.h"
[email protected]95b462c22014-07-16 05:02:097
[email protected]95b462c22014-07-16 05:02:098namespace content {
9
10NavigationRequestInfo::NavigationRequestInfo(
clamy0ab288e2015-02-05 17:39:1411 const CommonNavigationParams& common_params,
Arthur Hemery7b67a972017-12-01 15:24:4912 mojom::BeginNavigationParamsPtr begin_params,
Mike Westb85da8ed2017-08-10 14:16:4613 const GURL& site_for_cookies,
clamy0ab288e2015-02-05 17:39:1414 bool is_main_frame,
15 bool parent_is_main_frame,
clamydf7927e2016-09-22 13:03:1416 bool are_ancestors_secure,
jam0eb5df62016-10-19 10:00:0917 int frame_tree_node_id,
jam2082913d2016-10-26 00:24:3918 bool is_for_guests_only,
drogerf8579b72016-12-13 12:26:5519 bool report_raw_headers,
Marijn Kruisselbrink07bf59d52018-04-03 21:50:2520 bool is_prerendering,
Carlos ILa54c59a2018-06-11 19:43:0321 bool upgrade_if_insecure,
Marijn Kruisselbrink07bf59d52018-04-03 21:50:2522 std::unique_ptr<network::SharedURLLoaderFactoryInfo>
Tsuyoshi Horo32b51f12018-05-09 17:58:4623 blob_url_loader_factory,
Tsuyoshi Horoc1ab7122018-06-19 05:48:1324 const base::UnguessableToken& devtools_navigation_token,
25 const base::UnguessableToken& devtools_frame_token)
clamy0ab288e2015-02-05 17:39:1426 : common_params(common_params),
Arthur Hemery7b67a972017-12-01 15:24:4927 begin_params(std::move(begin_params)),
Mike Westb85da8ed2017-08-10 14:16:4628 site_for_cookies(site_for_cookies),
clamy0ab288e2015-02-05 17:39:1429 is_main_frame(is_main_frame),
30 parent_is_main_frame(parent_is_main_frame),
clamydf7927e2016-09-22 13:03:1431 are_ancestors_secure(are_ancestors_secure),
jam0eb5df62016-10-19 10:00:0932 frame_tree_node_id(frame_tree_node_id),
jam2082913d2016-10-26 00:24:3933 is_for_guests_only(is_for_guests_only),
drogerf8579b72016-12-13 12:26:5534 report_raw_headers(report_raw_headers),
Marijn Kruisselbrink07bf59d52018-04-03 21:50:2535 is_prerendering(is_prerendering),
Carlos ILa54c59a2018-06-11 19:43:0336 upgrade_if_insecure(upgrade_if_insecure),
Tsuyoshi Horo32b51f12018-05-09 17:58:4637 blob_url_loader_factory(std::move(blob_url_loader_factory)),
Tsuyoshi Horoc1ab7122018-06-19 05:48:1338 devtools_navigation_token(devtools_navigation_token),
39 devtools_frame_token(devtools_frame_token) {}
[email protected]95b462c22014-07-16 05:02:0940
Makoto Shimazu44c2c3232018-03-30 01:10:2041NavigationRequestInfo::NavigationRequestInfo(const NavigationRequestInfo& other)
42 : common_params(other.common_params),
43 begin_params(other.begin_params.Clone()),
44 site_for_cookies(other.site_for_cookies),
45 is_main_frame(other.is_main_frame),
46 parent_is_main_frame(other.parent_is_main_frame),
47 are_ancestors_secure(other.are_ancestors_secure),
48 frame_tree_node_id(other.frame_tree_node_id),
49 is_for_guests_only(other.is_for_guests_only),
50 report_raw_headers(other.report_raw_headers),
Tsuyoshi Horo32b51f12018-05-09 17:58:4651 is_prerendering(other.is_prerendering),
Carlos ILa54c59a2018-06-11 19:43:0352 upgrade_if_insecure(other.upgrade_if_insecure),
Tsuyoshi Horoc1ab7122018-06-19 05:48:1353 devtools_frame_token(other.devtools_frame_token) {}
Makoto Shimazu44c2c3232018-03-30 01:10:2054
clamy0ab288e2015-02-05 17:39:1455NavigationRequestInfo::~NavigationRequestInfo() {}
56
[email protected]95b462c22014-07-16 05:02:0957} // namespace content