| 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/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 can_load_local_resources(false), | 108 can_load_local_resources(false), |
| 109 request_time(base::Time::Now()), | 109 request_time(base::Time::Now()), |
| 110 page_id(-1), | 110 page_id(-1), |
| 111 nav_entry_id(0), | 111 nav_entry_id(0), |
| 112 is_same_document_history_load(false), | 112 is_same_document_history_load(false), |
| 113 has_committed_real_load(false), | 113 has_committed_real_load(false), |
| 114 intended_as_new_entry(false), | 114 intended_as_new_entry(false), |
| 115 pending_history_list_offset(-1), | 115 pending_history_list_offset(-1), |
| 116 current_history_list_offset(-1), | 116 current_history_list_offset(-1), |
| 117 current_history_list_length(0), | 117 current_history_list_length(0), |
| 118 should_clear_history_list(false) { | 118 should_clear_history_list(false), |
| 119 lofi_state(LOFI_DEFAULT) { |
| 119 } | 120 } |
| 120 | 121 |
| 121 RequestNavigationParams::RequestNavigationParams( | 122 RequestNavigationParams::RequestNavigationParams( |
| 122 bool is_overriding_user_agent, | 123 bool is_overriding_user_agent, |
| 123 base::TimeTicks navigation_start, | 124 base::TimeTicks navigation_start, |
| 124 const std::vector<GURL>& redirects, | 125 const std::vector<GURL>& redirects, |
| 125 bool can_load_local_resources, | 126 bool can_load_local_resources, |
| 126 base::Time request_time, | 127 base::Time request_time, |
| 127 const PageState& page_state, | 128 const PageState& page_state, |
| 128 int32 page_id, | 129 int32 page_id, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 141 request_time(request_time), | 142 request_time(request_time), |
| 142 page_state(page_state), | 143 page_state(page_state), |
| 143 page_id(page_id), | 144 page_id(page_id), |
| 144 nav_entry_id(nav_entry_id), | 145 nav_entry_id(nav_entry_id), |
| 145 is_same_document_history_load(is_same_document_history_load), | 146 is_same_document_history_load(is_same_document_history_load), |
| 146 has_committed_real_load(has_committed_real_load), | 147 has_committed_real_load(has_committed_real_load), |
| 147 intended_as_new_entry(intended_as_new_entry), | 148 intended_as_new_entry(intended_as_new_entry), |
| 148 pending_history_list_offset(pending_history_list_offset), | 149 pending_history_list_offset(pending_history_list_offset), |
| 149 current_history_list_offset(current_history_list_offset), | 150 current_history_list_offset(current_history_list_offset), |
| 150 current_history_list_length(current_history_list_length), | 151 current_history_list_length(current_history_list_length), |
| 151 should_clear_history_list(should_clear_history_list) { | 152 should_clear_history_list(should_clear_history_list), |
| 153 lofi_state(LOFI_DEFAULT) { |
| 152 } | 154 } |
| 153 | 155 |
| 154 RequestNavigationParams::~RequestNavigationParams() { | 156 RequestNavigationParams::~RequestNavigationParams() { |
| 155 } | 157 } |
| 156 | 158 |
| 157 NavigationParams::NavigationParams( | 159 NavigationParams::NavigationParams( |
| 158 const CommonNavigationParams& common_params, | 160 const CommonNavigationParams& common_params, |
| 159 const StartNavigationParams& start_params, | 161 const StartNavigationParams& start_params, |
| 160 const RequestNavigationParams& request_params) | 162 const RequestNavigationParams& request_params) |
| 161 : common_params(common_params), | 163 : common_params(common_params), |
| 162 start_params(start_params), | 164 start_params(start_params), |
| 163 request_params(request_params) { | 165 request_params(request_params) { |
| 164 } | 166 } |
| 165 | 167 |
| 166 NavigationParams::~NavigationParams() { | 168 NavigationParams::~NavigationParams() { |
| 167 } | 169 } |
| 168 | 170 |
| 169 } // namespace content | 171 } // namespace content |
| OLD | NEW |