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

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

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Rebased Created 3 years, 8 months 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/common/net/url_request_devtools_user_data.h » ('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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 StartNavigationParams::StartNavigationParams( 149 StartNavigationParams::StartNavigationParams(
150 const StartNavigationParams& other) = default; 150 const StartNavigationParams& other) = default;
151 151
152 StartNavigationParams::~StartNavigationParams() { 152 StartNavigationParams::~StartNavigationParams() {
153 } 153 }
154 154
155 RequestNavigationParams::RequestNavigationParams() 155 RequestNavigationParams::RequestNavigationParams()
156 : is_overriding_user_agent(false), 156 : is_overriding_user_agent(false),
157 can_load_local_resources(false), 157 can_load_local_resources(false),
158 nav_entry_id(0), 158 nav_entry_id(0),
159 devtools_request_id(0),
159 is_history_navigation_in_new_child(false), 160 is_history_navigation_in_new_child(false),
160 has_committed_real_load(false), 161 has_committed_real_load(false),
161 intended_as_new_entry(false), 162 intended_as_new_entry(false),
162 pending_history_list_offset(-1), 163 pending_history_list_offset(-1),
163 current_history_list_offset(-1), 164 current_history_list_offset(-1),
164 current_history_list_length(0), 165 current_history_list_length(0),
165 is_view_source(false), 166 is_view_source(false),
166 should_clear_history_list(false), 167 should_clear_history_list(false),
167 should_create_service_worker(false), 168 should_create_service_worker(false),
168 service_worker_provider_id(kInvalidServiceWorkerProviderId), 169 service_worker_provider_id(kInvalidServiceWorkerProviderId),
169 appcache_host_id(kAppCacheNoHostId), 170 appcache_host_id(kAppCacheNoHostId),
170 has_user_gesture(false) { 171 has_user_gesture(false) {}
171 }
172 172
173 RequestNavigationParams::RequestNavigationParams( 173 RequestNavigationParams::RequestNavigationParams(
174 bool is_overriding_user_agent, 174 bool is_overriding_user_agent,
175 const std::vector<GURL>& redirects, 175 const std::vector<GURL>& redirects,
176 const GURL& original_url, 176 const GURL& original_url,
177 const std::string& original_method, 177 const std::string& original_method,
178 bool can_load_local_resources, 178 bool can_load_local_resources,
179 const PageState& page_state, 179 const PageState& page_state,
180 int nav_entry_id, 180 int nav_entry_id,
181 bool is_history_navigation_in_new_child, 181 bool is_history_navigation_in_new_child,
182 std::map<std::string, bool> subframe_unique_names, 182 std::map<std::string, bool> subframe_unique_names,
183 bool has_committed_real_load, 183 bool has_committed_real_load,
184 bool intended_as_new_entry, 184 bool intended_as_new_entry,
185 int pending_history_list_offset, 185 int pending_history_list_offset,
186 int current_history_list_offset, 186 int current_history_list_offset,
187 int current_history_list_length, 187 int current_history_list_length,
188 bool is_view_source, 188 bool is_view_source,
189 bool should_clear_history_list, 189 bool should_clear_history_list,
190 bool has_user_gesture) 190 bool has_user_gesture)
191 : is_overriding_user_agent(is_overriding_user_agent), 191 : is_overriding_user_agent(is_overriding_user_agent),
192 redirects(redirects), 192 redirects(redirects),
193 original_url(original_url), 193 original_url(original_url),
194 original_method(original_method), 194 original_method(original_method),
195 can_load_local_resources(can_load_local_resources), 195 can_load_local_resources(can_load_local_resources),
196 page_state(page_state), 196 page_state(page_state),
197 nav_entry_id(nav_entry_id), 197 nav_entry_id(nav_entry_id),
198 devtools_request_id(-nav_entry_id),
198 is_history_navigation_in_new_child(is_history_navigation_in_new_child), 199 is_history_navigation_in_new_child(is_history_navigation_in_new_child),
199 subframe_unique_names(subframe_unique_names), 200 subframe_unique_names(subframe_unique_names),
200 has_committed_real_load(has_committed_real_load), 201 has_committed_real_load(has_committed_real_load),
201 intended_as_new_entry(intended_as_new_entry), 202 intended_as_new_entry(intended_as_new_entry),
202 pending_history_list_offset(pending_history_list_offset), 203 pending_history_list_offset(pending_history_list_offset),
203 current_history_list_offset(current_history_list_offset), 204 current_history_list_offset(current_history_list_offset),
204 current_history_list_length(current_history_list_length), 205 current_history_list_length(current_history_list_length),
205 is_view_source(is_view_source), 206 is_view_source(is_view_source),
206 should_clear_history_list(should_clear_history_list), 207 should_clear_history_list(should_clear_history_list),
207 should_create_service_worker(false), 208 should_create_service_worker(false),
(...skipping 13 matching lines...) Expand all
221 const RequestNavigationParams& request_params) 222 const RequestNavigationParams& request_params)
222 : common_params(common_params), 223 : common_params(common_params),
223 start_params(start_params), 224 start_params(start_params),
224 request_params(request_params) { 225 request_params(request_params) {
225 } 226 }
226 227
227 NavigationParams::~NavigationParams() { 228 NavigationParams::~NavigationParams() {
228 } 229 }
229 230
230 } // namespace content 231 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.h ('k') | content/common/net/url_request_devtools_user_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698