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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 5 years, 3 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
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/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
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,
129 int nav_entry_id, 130 int nav_entry_id,
130 bool is_same_document_history_load, 131 bool is_same_document_history_load,
131 bool has_committed_real_load, 132 bool has_committed_real_load,
132 bool intended_as_new_entry, 133 bool intended_as_new_entry,
133 int pending_history_list_offset, 134 int pending_history_list_offset,
134 int current_history_list_offset, 135 int current_history_list_offset,
135 int current_history_list_length, 136 int current_history_list_length,
136 bool should_clear_history_list) 137 bool should_clear_history_list,
138 int lofi_state)
137 : is_overriding_user_agent(is_overriding_user_agent), 139 : is_overriding_user_agent(is_overriding_user_agent),
138 browser_navigation_start(navigation_start), 140 browser_navigation_start(navigation_start),
139 redirects(redirects), 141 redirects(redirects),
140 can_load_local_resources(can_load_local_resources), 142 can_load_local_resources(can_load_local_resources),
141 request_time(request_time), 143 request_time(request_time),
142 page_state(page_state), 144 page_state(page_state),
143 page_id(page_id), 145 page_id(page_id),
144 nav_entry_id(nav_entry_id), 146 nav_entry_id(nav_entry_id),
145 is_same_document_history_load(is_same_document_history_load), 147 is_same_document_history_load(is_same_document_history_load),
146 has_committed_real_load(has_committed_real_load), 148 has_committed_real_load(has_committed_real_load),
147 intended_as_new_entry(intended_as_new_entry), 149 intended_as_new_entry(intended_as_new_entry),
148 pending_history_list_offset(pending_history_list_offset), 150 pending_history_list_offset(pending_history_list_offset),
149 current_history_list_offset(current_history_list_offset), 151 current_history_list_offset(current_history_list_offset),
150 current_history_list_length(current_history_list_length), 152 current_history_list_length(current_history_list_length),
151 should_clear_history_list(should_clear_history_list) { 153 should_clear_history_list(should_clear_history_list),
154 lofi_state(lofi_state) {
152 } 155 }
153 156
154 RequestNavigationParams::~RequestNavigationParams() { 157 RequestNavigationParams::~RequestNavigationParams() {
155 } 158 }
156 159
157 NavigationParams::NavigationParams( 160 NavigationParams::NavigationParams(
158 const CommonNavigationParams& common_params, 161 const CommonNavigationParams& common_params,
159 const StartNavigationParams& start_params, 162 const StartNavigationParams& start_params,
160 const RequestNavigationParams& request_params) 163 const RequestNavigationParams& request_params)
161 : common_params(common_params), 164 : common_params(common_params),
162 start_params(start_params), 165 start_params(start_params),
163 request_params(request_params) { 166 request_params(request_params) {
164 } 167 }
165 168
166 NavigationParams::~NavigationParams() { 169 NavigationParams::~NavigationParams() {
167 } 170 }
168 171
169 } // namespace content 172 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698