OLD | NEW |
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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.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/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 request_time(base::Time::Now()), | 116 request_time(base::Time::Now()), |
117 page_id(-1), | 117 page_id(-1), |
118 nav_entry_id(0), | 118 nav_entry_id(0), |
119 is_same_document_history_load(false), | 119 is_same_document_history_load(false), |
120 has_committed_real_load(false), | 120 has_committed_real_load(false), |
121 intended_as_new_entry(false), | 121 intended_as_new_entry(false), |
122 pending_history_list_offset(-1), | 122 pending_history_list_offset(-1), |
123 current_history_list_offset(-1), | 123 current_history_list_offset(-1), |
124 current_history_list_length(0), | 124 current_history_list_length(0), |
125 should_clear_history_list(false), | 125 should_clear_history_list(false), |
| 126 should_create_service_worker(false), |
126 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | 127 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} |
127 | 128 |
128 RequestNavigationParams::RequestNavigationParams( | 129 RequestNavigationParams::RequestNavigationParams( |
129 bool is_overriding_user_agent, | 130 bool is_overriding_user_agent, |
130 base::TimeTicks navigation_start, | 131 base::TimeTicks navigation_start, |
131 const std::vector<GURL>& redirects, | 132 const std::vector<GURL>& redirects, |
132 bool can_load_local_resources, | 133 bool can_load_local_resources, |
133 base::Time request_time, | 134 base::Time request_time, |
134 const PageState& page_state, | 135 const PageState& page_state, |
135 int32 page_id, | 136 int32 page_id, |
(...skipping 13 matching lines...) Expand all Loading... |
149 page_state(page_state), | 150 page_state(page_state), |
150 page_id(page_id), | 151 page_id(page_id), |
151 nav_entry_id(nav_entry_id), | 152 nav_entry_id(nav_entry_id), |
152 is_same_document_history_load(is_same_document_history_load), | 153 is_same_document_history_load(is_same_document_history_load), |
153 has_committed_real_load(has_committed_real_load), | 154 has_committed_real_load(has_committed_real_load), |
154 intended_as_new_entry(intended_as_new_entry), | 155 intended_as_new_entry(intended_as_new_entry), |
155 pending_history_list_offset(pending_history_list_offset), | 156 pending_history_list_offset(pending_history_list_offset), |
156 current_history_list_offset(current_history_list_offset), | 157 current_history_list_offset(current_history_list_offset), |
157 current_history_list_length(current_history_list_length), | 158 current_history_list_length(current_history_list_length), |
158 should_clear_history_list(should_clear_history_list), | 159 should_clear_history_list(should_clear_history_list), |
| 160 should_create_service_worker(false), |
159 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | 161 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} |
160 | 162 |
161 RequestNavigationParams::~RequestNavigationParams() { | 163 RequestNavigationParams::~RequestNavigationParams() { |
162 } | 164 } |
163 | 165 |
164 NavigationParams::NavigationParams( | 166 NavigationParams::NavigationParams( |
165 const CommonNavigationParams& common_params, | 167 const CommonNavigationParams& common_params, |
166 const StartNavigationParams& start_params, | 168 const StartNavigationParams& start_params, |
167 const RequestNavigationParams& request_params) | 169 const RequestNavigationParams& request_params) |
168 : common_params(common_params), | 170 : common_params(common_params), |
169 start_params(start_params), | 171 start_params(start_params), |
170 request_params(request_params) { | 172 request_params(request_params) { |
171 } | 173 } |
172 | 174 |
173 NavigationParams::~NavigationParams() { | 175 NavigationParams::~NavigationParams() { |
174 } | 176 } |
175 | 177 |
176 } // namespace content | 178 } // namespace content |
OLD | NEW |