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

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

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: included changes for navigation timing Created 3 years, 8 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 (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 #include "content/public/renderer/document_state.h" 5 #include "content/public/renderer/document_state.h"
6 6
7 #include "content/public/renderer/navigation_state.h" 7 #include "content/public/renderer/navigation_state.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 DocumentState::DocumentState() 11 DocumentState::DocumentState()
12 : was_fetched_via_spdy_(false), 12 : was_fetched_via_spdy_(false),
13 was_alpn_negotiated_(false), 13 was_alpn_negotiated_(false),
14 was_alternate_protocol_available_(false), 14 was_alternate_protocol_available_(false),
15 connection_info_(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), 15 connection_info_(net::HttpResponseInfo::ConnectionInfoToString(
16 net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN)),
16 was_load_data_with_base_url_request_(false), 17 was_load_data_with_base_url_request_(false),
17 can_load_local_resources_(false) {} 18 can_load_local_resources_(false) {}
18 19
19 DocumentState::~DocumentState() {} 20 DocumentState::~DocumentState() {}
20 21
21 void DocumentState::set_navigation_state(NavigationState* navigation_state) { 22 void DocumentState::set_navigation_state(NavigationState* navigation_state) {
22 navigation_state_.reset(navigation_state); 23 navigation_state_.reset(navigation_state);
23 } 24 }
24 25
25 } // namespace content 26 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698