[email protected] | 95b462c2 | 2014-07-16 05:02:09 | [diff] [blame] | 1 | // 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" |
fdegans | 69788e1 | 2015-10-06 15:30:08 | [diff] [blame] | 6 | #include "content/common/service_worker/service_worker_types.h" |
[email protected] | 95b462c2 | 2014-07-16 05:02:09 | [diff] [blame] | 7 | |
[email protected] | 95b462c2 | 2014-07-16 05:02:09 | [diff] [blame] | 8 | namespace content { |
| 9 | |
| 10 | NavigationRequestInfo::NavigationRequestInfo( |
clamy | 0ab288e | 2015-02-05 17:39:14 | [diff] [blame] | 11 | const CommonNavigationParams& common_params, |
Arthur Hemery | 7b67a97 | 2017-12-01 15:24:49 | [diff] [blame] | 12 | mojom::BeginNavigationParamsPtr begin_params, |
Mike West | b85da8ed | 2017-08-10 14:16:46 | [diff] [blame] | 13 | const GURL& site_for_cookies, |
clamy | 0ab288e | 2015-02-05 17:39:14 | [diff] [blame] | 14 | bool is_main_frame, |
| 15 | bool parent_is_main_frame, |
clamy | df7927e | 2016-09-22 13:03:14 | [diff] [blame] | 16 | bool are_ancestors_secure, |
jam | 0eb5df6 | 2016-10-19 10:00:09 | [diff] [blame] | 17 | int frame_tree_node_id, |
jam | 2082913d | 2016-10-26 00:24:39 | [diff] [blame] | 18 | bool is_for_guests_only, |
droger | f8579b7 | 2016-12-13 12:26:55 | [diff] [blame] | 19 | bool report_raw_headers, |
Marijn Kruisselbrink | 07bf59d5 | 2018-04-03 21:50:25 | [diff] [blame] | 20 | bool is_prerendering, |
Carlos IL | a54c59a | 2018-06-11 19:43:03 | [diff] [blame] | 21 | bool upgrade_if_insecure, |
Marijn Kruisselbrink | 07bf59d5 | 2018-04-03 21:50:25 | [diff] [blame] | 22 | std::unique_ptr<network::SharedURLLoaderFactoryInfo> |
Tsuyoshi Horo | 32b51f1 | 2018-05-09 17:58:46 | [diff] [blame] | 23 | blob_url_loader_factory, |
Tsuyoshi Horo | c1ab712 | 2018-06-19 05:48:13 | [diff] [blame^] | 24 | const base::UnguessableToken& devtools_navigation_token, |
| 25 | const base::UnguessableToken& devtools_frame_token) |
clamy | 0ab288e | 2015-02-05 17:39:14 | [diff] [blame] | 26 | : common_params(common_params), |
Arthur Hemery | 7b67a97 | 2017-12-01 15:24:49 | [diff] [blame] | 27 | begin_params(std::move(begin_params)), |
Mike West | b85da8ed | 2017-08-10 14:16:46 | [diff] [blame] | 28 | site_for_cookies(site_for_cookies), |
clamy | 0ab288e | 2015-02-05 17:39:14 | [diff] [blame] | 29 | is_main_frame(is_main_frame), |
| 30 | parent_is_main_frame(parent_is_main_frame), |
clamy | df7927e | 2016-09-22 13:03:14 | [diff] [blame] | 31 | are_ancestors_secure(are_ancestors_secure), |
jam | 0eb5df6 | 2016-10-19 10:00:09 | [diff] [blame] | 32 | frame_tree_node_id(frame_tree_node_id), |
jam | 2082913d | 2016-10-26 00:24:39 | [diff] [blame] | 33 | is_for_guests_only(is_for_guests_only), |
droger | f8579b7 | 2016-12-13 12:26:55 | [diff] [blame] | 34 | report_raw_headers(report_raw_headers), |
Marijn Kruisselbrink | 07bf59d5 | 2018-04-03 21:50:25 | [diff] [blame] | 35 | is_prerendering(is_prerendering), |
Carlos IL | a54c59a | 2018-06-11 19:43:03 | [diff] [blame] | 36 | upgrade_if_insecure(upgrade_if_insecure), |
Tsuyoshi Horo | 32b51f1 | 2018-05-09 17:58:46 | [diff] [blame] | 37 | blob_url_loader_factory(std::move(blob_url_loader_factory)), |
Tsuyoshi Horo | c1ab712 | 2018-06-19 05:48:13 | [diff] [blame^] | 38 | devtools_navigation_token(devtools_navigation_token), |
| 39 | devtools_frame_token(devtools_frame_token) {} |
[email protected] | 95b462c2 | 2014-07-16 05:02:09 | [diff] [blame] | 40 | |
Makoto Shimazu | 44c2c323 | 2018-03-30 01:10:20 | [diff] [blame] | 41 | NavigationRequestInfo::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 Horo | 32b51f1 | 2018-05-09 17:58:46 | [diff] [blame] | 51 | is_prerendering(other.is_prerendering), |
Carlos IL | a54c59a | 2018-06-11 19:43:03 | [diff] [blame] | 52 | upgrade_if_insecure(other.upgrade_if_insecure), |
Tsuyoshi Horo | c1ab712 | 2018-06-19 05:48:13 | [diff] [blame^] | 53 | devtools_frame_token(other.devtools_frame_token) {} |
Makoto Shimazu | 44c2c323 | 2018-03-30 01:10:20 | [diff] [blame] | 54 | |
clamy | 0ab288e | 2015-02-05 17:39:14 | [diff] [blame] | 55 | NavigationRequestInfo::~NavigationRequestInfo() {} |
| 56 | |
[email protected] | 95b462c2 | 2014-07-16 05:02:09 | [diff] [blame] | 57 | } // namespace content |