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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Do not default to http/1.1; add github issue reference Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4419 matching lines...) Expand 10 before | Expand all | Expand 10 after
4430 DocumentState::FromDataSource(frame_->ProvisionalDataSource()); 4430 DocumentState::FromDataSource(frame_->ProvisionalDataSource());
4431 int http_status_code = response.HttpStatusCode(); 4431 int http_status_code = response.HttpStatusCode();
4432 4432
4433 // Record page load flags. 4433 // Record page load flags.
4434 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); 4434 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response);
4435 if (extra_data) { 4435 if (extra_data) {
4436 document_state->set_was_fetched_via_spdy( 4436 document_state->set_was_fetched_via_spdy(
4437 extra_data->was_fetched_via_spdy()); 4437 extra_data->was_fetched_via_spdy());
4438 document_state->set_was_alpn_negotiated(extra_data->was_alpn_negotiated()); 4438 document_state->set_was_alpn_negotiated(extra_data->was_alpn_negotiated());
4439 document_state->set_alpn_negotiated_protocol( 4439 document_state->set_alpn_negotiated_protocol(
4440 extra_data->alpn_negotiated_protocol()); 4440 response.AlpnNegotiatedProtocol().Utf8());
4441 document_state->set_was_alternate_protocol_available( 4441 document_state->set_was_alternate_protocol_available(
4442 extra_data->was_alternate_protocol_available()); 4442 extra_data->was_alternate_protocol_available());
4443 document_state->set_connection_info( 4443 document_state->set_connection_info(response.ConnectionInfo());
4444 extra_data->connection_info());
4445 } 4444 }
4446 InternalDocumentStateData* internal_data = 4445 InternalDocumentStateData* internal_data =
4447 InternalDocumentStateData::FromDocumentState(document_state); 4446 InternalDocumentStateData::FromDocumentState(document_state);
4448 internal_data->set_http_status_code(http_status_code); 4447 internal_data->set_http_status_code(http_status_code);
4449 } 4448 }
4450 4449
4451 void RenderFrameImpl::DidLoadResourceFromMemoryCache( 4450 void RenderFrameImpl::DidLoadResourceFromMemoryCache(
4452 const blink::WebURLRequest& request, 4451 const blink::WebURLRequest& request,
4453 const blink::WebURLResponse& response) { 4452 const blink::WebURLResponse& response) {
4454 // The recipients of this message have no use for data: URLs: they don't 4453 // The recipients of this message have no use for data: URLs: they don't
(...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after
6855 policy(info.default_policy), 6854 policy(info.default_policy),
6856 replaces_current_history_item(info.replaces_current_history_item), 6855 replaces_current_history_item(info.replaces_current_history_item),
6857 history_navigation_in_new_child_frame( 6856 history_navigation_in_new_child_frame(
6858 info.is_history_navigation_in_new_child_frame), 6857 info.is_history_navigation_in_new_child_frame),
6859 client_redirect(info.is_client_redirect), 6858 client_redirect(info.is_client_redirect),
6860 cache_disabled(info.is_cache_disabled), 6859 cache_disabled(info.is_cache_disabled),
6861 form(info.form), 6860 form(info.form),
6862 source_location(info.source_location) {} 6861 source_location(info.source_location) {}
6863 6862
6864 } // namespace content 6863 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698