OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | 160 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } |
161 void set_was_fetched_via_proxy(bool value) { | 161 void set_was_fetched_via_proxy(bool value) { |
162 was_fetched_via_proxy_ = value; | 162 was_fetched_via_proxy_ = value; |
163 } | 163 } |
164 | 164 |
165 const net::HostPortPair& proxy_server() const { return proxy_server_; } | 165 const net::HostPortPair& proxy_server() const { return proxy_server_; } |
166 void set_proxy_server(const net::HostPortPair& proxy_server) { | 166 void set_proxy_server(const net::HostPortPair& proxy_server) { |
167 proxy_server_ = proxy_server; | 167 proxy_server_ = proxy_server; |
168 } | 168 } |
169 | 169 |
170 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } | |
171 bool was_prefetcher() const { return was_prefetcher_; } | |
172 | |
173 void set_was_referred_by_prefetcher(bool value) { | |
174 was_referred_by_prefetcher_ = value; | |
175 } | |
176 bool was_referred_by_prefetcher() const { | |
177 return was_referred_by_prefetcher_; | |
178 } | |
179 | |
180 void set_was_after_preconnect_request(bool value) { | |
181 was_after_preconnect_request_ = value; | |
182 } | |
183 bool was_after_preconnect_request() { return was_after_preconnect_request_; } | |
184 | 170 |
185 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| | 171 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| |
186 // is set to true and |data_url_| is set to the data URL of the navigation. | 172 // is set to true and |data_url_| is set to the data URL of the navigation. |
187 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| | 173 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| |
188 // is empty. | 174 // is empty. |
189 void set_was_load_data_with_base_url_request(bool value) { | 175 void set_was_load_data_with_base_url_request(bool value) { |
190 was_load_data_with_base_url_request_ = value; | 176 was_load_data_with_base_url_request_ = value; |
191 } | 177 } |
192 bool was_load_data_with_base_url_request() const { | 178 bool was_load_data_with_base_url_request() const { |
193 return was_load_data_with_base_url_request_; | 179 return was_load_data_with_base_url_request_; |
(...skipping 28 matching lines...) Expand all Loading... |
222 bool load_histograms_recorded_; | 208 bool load_histograms_recorded_; |
223 bool web_timing_histograms_recorded_; | 209 bool web_timing_histograms_recorded_; |
224 bool was_fetched_via_spdy_; | 210 bool was_fetched_via_spdy_; |
225 bool was_npn_negotiated_; | 211 bool was_npn_negotiated_; |
226 std::string npn_negotiated_protocol_; | 212 std::string npn_negotiated_protocol_; |
227 bool was_alternate_protocol_available_; | 213 bool was_alternate_protocol_available_; |
228 net::HttpResponseInfo::ConnectionInfo connection_info_; | 214 net::HttpResponseInfo::ConnectionInfo connection_info_; |
229 bool was_fetched_via_proxy_; | 215 bool was_fetched_via_proxy_; |
230 net::HostPortPair proxy_server_; | 216 net::HostPortPair proxy_server_; |
231 | 217 |
232 // A prefetcher is a page that contains link rel=prefetch elements. | |
233 bool was_prefetcher_; | |
234 bool was_referred_by_prefetcher_; | |
235 bool was_after_preconnect_request_; | |
236 | |
237 bool was_load_data_with_base_url_request_; | 218 bool was_load_data_with_base_url_request_; |
238 GURL data_url_; | 219 GURL data_url_; |
239 | 220 |
240 LoadType load_type_; | 221 LoadType load_type_; |
241 | 222 |
242 std::unique_ptr<NavigationState> navigation_state_; | 223 std::unique_ptr<NavigationState> navigation_state_; |
243 | 224 |
244 bool can_load_local_resources_; | 225 bool can_load_local_resources_; |
245 }; | 226 }; |
246 | 227 |
247 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 228 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
248 | 229 |
249 } // namespace content | 230 } // namespace content |
OLD | NEW |