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

Side by Side Diff: content/public/renderer/document_state.h

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: Added core_export for PerformanceResourceTiming Created 4 years, 1 month 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 (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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 alpn_negotiated_protocol_ = value; 142 alpn_negotiated_protocol_ = value;
143 } 143 }
144 144
145 bool was_alternate_protocol_available() const { 145 bool was_alternate_protocol_available() const {
146 return was_alternate_protocol_available_; 146 return was_alternate_protocol_available_;
147 } 147 }
148 void set_was_alternate_protocol_available(bool value) { 148 void set_was_alternate_protocol_available(bool value) {
149 was_alternate_protocol_available_ = value; 149 was_alternate_protocol_available_ = value;
150 } 150 }
151 151
152 net::HttpResponseInfo::ConnectionInfo connection_info() const { 152 std::string connection_info() const {
153 return connection_info_; 153 return connection_info_;
154 } 154 }
155 void set_connection_info( 155 void set_connection_info(const std::string& connection_info) {
156 net::HttpResponseInfo::ConnectionInfo connection_info) {
157 connection_info_ = connection_info; 156 connection_info_ = connection_info;
158 } 157 }
159 158
160 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_| 159 // For LoadDataWithBaseURL navigations, |was_load_data_with_base_url_request_|
161 // is set to true and |data_url_| is set to the data URL of the navigation. 160 // is set to true and |data_url_| is set to the data URL of the navigation.
162 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_| 161 // Otherwise, |was_load_data_with_base_url_request_| is false and |data_url_|
163 // is empty. 162 // is empty.
164 void set_was_load_data_with_base_url_request(bool value) { 163 void set_was_load_data_with_base_url_request(bool value) {
165 was_load_data_with_base_url_request_ = value; 164 was_load_data_with_base_url_request_ = value;
166 } 165 }
(...skipping 26 matching lines...) Expand all
193 base::Time finish_document_load_time_; 192 base::Time finish_document_load_time_;
194 base::Time finish_load_time_; 193 base::Time finish_load_time_;
195 base::Time first_paint_time_; 194 base::Time first_paint_time_;
196 base::Time first_paint_after_load_time_; 195 base::Time first_paint_after_load_time_;
197 bool load_histograms_recorded_; 196 bool load_histograms_recorded_;
198 bool web_timing_histograms_recorded_; 197 bool web_timing_histograms_recorded_;
199 bool was_fetched_via_spdy_; 198 bool was_fetched_via_spdy_;
200 bool was_alpn_negotiated_; 199 bool was_alpn_negotiated_;
201 std::string alpn_negotiated_protocol_; 200 std::string alpn_negotiated_protocol_;
202 bool was_alternate_protocol_available_; 201 bool was_alternate_protocol_available_;
203 net::HttpResponseInfo::ConnectionInfo connection_info_; 202 std::string connection_info_;
204 203
205 bool was_load_data_with_base_url_request_; 204 bool was_load_data_with_base_url_request_;
206 GURL data_url_; 205 GURL data_url_;
207 206
208 LoadType load_type_; 207 LoadType load_type_;
209 208
210 std::unique_ptr<NavigationState> navigation_state_; 209 std::unique_ptr<NavigationState> navigation_state_;
211 210
212 bool can_load_local_resources_; 211 bool can_load_local_resources_;
213 }; 212 };
214 213
215 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 214 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
216 215
217 } // namespace content 216 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698