| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 net::HttpResponseInfo::ConnectionInfo connection_info() const { | 152 net::HttpResponseInfo::ConnectionInfo connection_info() const { |
| 153 return connection_info_; | 153 return connection_info_; |
| 154 } | 154 } |
| 155 void set_connection_info( | 155 void set_connection_info( |
| 156 net::HttpResponseInfo::ConnectionInfo connection_info) { | 156 net::HttpResponseInfo::ConnectionInfo connection_info) { |
| 157 connection_info_ = connection_info; | 157 connection_info_ = connection_info; |
| 158 } | 158 } |
| 159 | 159 |
| 160 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | |
| 161 void set_was_fetched_via_proxy(bool value) { | |
| 162 was_fetched_via_proxy_ = value; | |
| 163 } | |
| 164 | |
| 165 const net::HostPortPair& proxy_server() const { return proxy_server_; } | |
| 166 void set_proxy_server(const net::HostPortPair& proxy_server) { | |
| 167 proxy_server_ = proxy_server; | |
| 168 } | |
| 169 | |
| 170 | |
| 171 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| | 160 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| |
| 172 // is set to true and |data_url_| is set to the data URL of the navigation. | 161 // is set to true and |data_url_| is set to the data URL of the navigation. |
| 173 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| | 162 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| |
| 174 // is empty. | 163 // is empty. |
| 175 void set_was_load_data_with_base_url_request(bool value) { | 164 void set_was_load_data_with_base_url_request(bool value) { |
| 176 was_load_data_with_base_url_request_ = value; | 165 was_load_data_with_base_url_request_ = value; |
| 177 } | 166 } |
| 178 bool was_load_data_with_base_url_request() const { | 167 bool was_load_data_with_base_url_request() const { |
| 179 return was_load_data_with_base_url_request_; | 168 return was_load_data_with_base_url_request_; |
| 180 } | 169 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 205 base::Time finish_load_time_; | 194 base::Time finish_load_time_; |
| 206 base::Time first_paint_time_; | 195 base::Time first_paint_time_; |
| 207 base::Time first_paint_after_load_time_; | 196 base::Time first_paint_after_load_time_; |
| 208 bool load_histograms_recorded_; | 197 bool load_histograms_recorded_; |
| 209 bool web_timing_histograms_recorded_; | 198 bool web_timing_histograms_recorded_; |
| 210 bool was_fetched_via_spdy_; | 199 bool was_fetched_via_spdy_; |
| 211 bool was_alpn_negotiated_; | 200 bool was_alpn_negotiated_; |
| 212 std::string alpn_negotiated_protocol_; | 201 std::string alpn_negotiated_protocol_; |
| 213 bool was_alternate_protocol_available_; | 202 bool was_alternate_protocol_available_; |
| 214 net::HttpResponseInfo::ConnectionInfo connection_info_; | 203 net::HttpResponseInfo::ConnectionInfo connection_info_; |
| 215 bool was_fetched_via_proxy_; | |
| 216 net::HostPortPair proxy_server_; | |
| 217 | 204 |
| 218 bool was_load_data_with_base_url_request_; | 205 bool was_load_data_with_base_url_request_; |
| 219 GURL data_url_; | 206 GURL data_url_; |
| 220 | 207 |
| 221 LoadType load_type_; | 208 LoadType load_type_; |
| 222 | 209 |
| 223 std::unique_ptr<NavigationState> navigation_state_; | 210 std::unique_ptr<NavigationState> navigation_state_; |
| 224 | 211 |
| 225 bool can_load_local_resources_; | 212 bool can_load_local_resources_; |
| 226 }; | 213 }; |
| 227 | 214 |
| 228 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 215 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
| 229 | 216 |
| 230 } // namespace content | 217 } // namespace content |
| OLD | NEW |