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

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

Issue 2449553002: Remove dead DocumentState metrics tracking code (Closed)
Patch Set: fix tests Created 4 years, 1 month 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/public/renderer/document_state.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/browser_side_navigation_policy.h" 10 #include "content/public/common/browser_side_navigation_policy.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 StartNavigationParams::StartNavigationParams( 117 StartNavigationParams::StartNavigationParams(
118 const StartNavigationParams& other) = default; 118 const StartNavigationParams& other) = default;
119 119
120 StartNavigationParams::~StartNavigationParams() { 120 StartNavigationParams::~StartNavigationParams() {
121 } 121 }
122 122
123 RequestNavigationParams::RequestNavigationParams() 123 RequestNavigationParams::RequestNavigationParams()
124 : is_overriding_user_agent(false), 124 : is_overriding_user_agent(false),
125 can_load_local_resources(false), 125 can_load_local_resources(false),
126 request_time(base::Time::Now()),
127 nav_entry_id(0), 126 nav_entry_id(0),
128 is_same_document_history_load(false), 127 is_same_document_history_load(false),
129 is_history_navigation_in_new_child(false), 128 is_history_navigation_in_new_child(false),
130 has_committed_real_load(false), 129 has_committed_real_load(false),
131 intended_as_new_entry(false), 130 intended_as_new_entry(false),
132 pending_history_list_offset(-1), 131 pending_history_list_offset(-1),
133 current_history_list_offset(-1), 132 current_history_list_offset(-1),
134 current_history_list_length(0), 133 current_history_list_length(0),
135 is_view_source(false), 134 is_view_source(false),
136 should_clear_history_list(false), 135 should_clear_history_list(false),
137 should_create_service_worker(false), 136 should_create_service_worker(false),
138 service_worker_provider_id(kInvalidServiceWorkerProviderId), 137 service_worker_provider_id(kInvalidServiceWorkerProviderId),
139 has_user_gesture(false) {} 138 has_user_gesture(false) {}
140 139
141 RequestNavigationParams::RequestNavigationParams( 140 RequestNavigationParams::RequestNavigationParams(
142 bool is_overriding_user_agent, 141 bool is_overriding_user_agent,
143 const std::vector<GURL>& redirects, 142 const std::vector<GURL>& redirects,
144 bool can_load_local_resources, 143 bool can_load_local_resources,
145 base::Time request_time,
146 const PageState& page_state, 144 const PageState& page_state,
147 int nav_entry_id, 145 int nav_entry_id,
148 bool is_same_document_history_load, 146 bool is_same_document_history_load,
149 bool is_history_navigation_in_new_child, 147 bool is_history_navigation_in_new_child,
150 std::map<std::string, bool> subframe_unique_names, 148 std::map<std::string, bool> subframe_unique_names,
151 bool has_committed_real_load, 149 bool has_committed_real_load,
152 bool intended_as_new_entry, 150 bool intended_as_new_entry,
153 int pending_history_list_offset, 151 int pending_history_list_offset,
154 int current_history_list_offset, 152 int current_history_list_offset,
155 int current_history_list_length, 153 int current_history_list_length,
156 bool is_view_source, 154 bool is_view_source,
157 bool should_clear_history_list, 155 bool should_clear_history_list,
158 bool has_user_gesture) 156 bool has_user_gesture)
159 : is_overriding_user_agent(is_overriding_user_agent), 157 : is_overriding_user_agent(is_overriding_user_agent),
160 redirects(redirects), 158 redirects(redirects),
161 can_load_local_resources(can_load_local_resources), 159 can_load_local_resources(can_load_local_resources),
162 request_time(request_time),
163 page_state(page_state), 160 page_state(page_state),
164 nav_entry_id(nav_entry_id), 161 nav_entry_id(nav_entry_id),
165 is_same_document_history_load(is_same_document_history_load), 162 is_same_document_history_load(is_same_document_history_load),
166 is_history_navigation_in_new_child(is_history_navigation_in_new_child), 163 is_history_navigation_in_new_child(is_history_navigation_in_new_child),
167 subframe_unique_names(subframe_unique_names), 164 subframe_unique_names(subframe_unique_names),
168 has_committed_real_load(has_committed_real_load), 165 has_committed_real_load(has_committed_real_load),
169 intended_as_new_entry(intended_as_new_entry), 166 intended_as_new_entry(intended_as_new_entry),
170 pending_history_list_offset(pending_history_list_offset), 167 pending_history_list_offset(pending_history_list_offset),
171 current_history_list_offset(current_history_list_offset), 168 current_history_list_offset(current_history_list_offset),
172 current_history_list_length(current_history_list_length), 169 current_history_list_length(current_history_list_length),
(...skipping 15 matching lines...) Expand all
188 const RequestNavigationParams& request_params) 185 const RequestNavigationParams& request_params)
189 : common_params(common_params), 186 : common_params(common_params),
190 start_params(start_params), 187 start_params(start_params),
191 request_params(request_params) { 188 request_params(request_params) {
192 } 189 }
193 190
194 NavigationParams::~NavigationParams() { 191 NavigationParams::~NavigationParams() {
195 } 192 }
196 193
197 } // namespace content 194 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/renderer/document_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698