Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: content/common/navigation_params.cc

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/navigation_params.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/navigation_params.h" 5 #include "content/common/navigation_params.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
10 #include "content/public/common/appcache_info.h" 10 #include "content/public/common/appcache_info.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 : load_flags(0), 84 : load_flags(0),
85 has_user_gesture(false), 85 has_user_gesture(false),
86 skip_service_worker(false), 86 skip_service_worker(false),
87 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {} 87 request_context_type(REQUEST_CONTEXT_TYPE_LOCATION) {}
88 88
89 BeginNavigationParams::BeginNavigationParams( 89 BeginNavigationParams::BeginNavigationParams(
90 std::string headers, 90 std::string headers,
91 int load_flags, 91 int load_flags,
92 bool has_user_gesture, 92 bool has_user_gesture,
93 bool skip_service_worker, 93 bool skip_service_worker,
94 RequestContextType request_context_type) 94 RequestContextType request_context_type,
95 const base::Optional<url::Origin>& initiator_origin)
95 : headers(headers), 96 : headers(headers),
96 load_flags(load_flags), 97 load_flags(load_flags),
97 has_user_gesture(has_user_gesture), 98 has_user_gesture(has_user_gesture),
98 skip_service_worker(skip_service_worker), 99 skip_service_worker(skip_service_worker),
99 request_context_type(request_context_type) {} 100 request_context_type(request_context_type),
101 initiator_origin(initiator_origin) {}
100 102
101 BeginNavigationParams::BeginNavigationParams( 103 BeginNavigationParams::BeginNavigationParams(
102 const BeginNavigationParams& other) = default; 104 const BeginNavigationParams& other) = default;
103 105
106 BeginNavigationParams::~BeginNavigationParams() {}
107
104 StartNavigationParams::StartNavigationParams() 108 StartNavigationParams::StartNavigationParams()
105 : transferred_request_child_id(-1), 109 : transferred_request_child_id(-1),
106 transferred_request_request_id(-1) { 110 transferred_request_request_id(-1) {
107 } 111 }
108 112
109 StartNavigationParams::StartNavigationParams( 113 StartNavigationParams::StartNavigationParams(
110 const std::string& extra_headers, 114 const std::string& extra_headers,
111 int transferred_request_child_id, 115 int transferred_request_child_id,
112 int transferred_request_request_id) 116 int transferred_request_request_id)
113 : extra_headers(extra_headers), 117 : extra_headers(extra_headers),
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const RequestNavigationParams& request_params) 194 const RequestNavigationParams& request_params)
191 : common_params(common_params), 195 : common_params(common_params),
192 start_params(start_params), 196 start_params(start_params),
193 request_params(request_params) { 197 request_params(request_params) {
194 } 198 }
195 199
196 NavigationParams::~NavigationParams() { 200 NavigationParams::~NavigationParams() {
197 } 201 }
198 202
199 } // namespace content 203 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698