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

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

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 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 4232 matching lines...) Expand 10 before | Expand all | Expand 10 after
4243 DocumentState::FromDataSource(frame_->provisionalDataSource()); 4243 DocumentState::FromDataSource(frame_->provisionalDataSource());
4244 int http_status_code = response.httpStatusCode(); 4244 int http_status_code = response.httpStatusCode();
4245 4245
4246 // Record page load flags. 4246 // Record page load flags.
4247 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); 4247 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response);
4248 if (extra_data) { 4248 if (extra_data) {
4249 document_state->set_was_fetched_via_spdy( 4249 document_state->set_was_fetched_via_spdy(
4250 extra_data->was_fetched_via_spdy()); 4250 extra_data->was_fetched_via_spdy());
4251 document_state->set_was_alpn_negotiated(extra_data->was_alpn_negotiated()); 4251 document_state->set_was_alpn_negotiated(extra_data->was_alpn_negotiated());
4252 document_state->set_alpn_negotiated_protocol( 4252 document_state->set_alpn_negotiated_protocol(
4253 extra_data->alpn_negotiated_protocol()); 4253 response.alpnNegotiatedProtocol().utf8());
4254 document_state->set_was_alternate_protocol_available( 4254 document_state->set_was_alternate_protocol_available(
4255 extra_data->was_alternate_protocol_available()); 4255 extra_data->was_alternate_protocol_available());
4256 document_state->set_connection_info( 4256 document_state->set_connection_info(
4257 extra_data->connection_info()); 4257 response.connectionInfo().utf8());
4258 } 4258 }
4259 InternalDocumentStateData* internal_data = 4259 InternalDocumentStateData* internal_data =
4260 InternalDocumentStateData::FromDocumentState(document_state); 4260 InternalDocumentStateData::FromDocumentState(document_state);
4261 internal_data->set_http_status_code(http_status_code); 4261 internal_data->set_http_status_code(http_status_code);
4262 } 4262 }
4263 4263
4264 void RenderFrameImpl::didLoadResourceFromMemoryCache( 4264 void RenderFrameImpl::didLoadResourceFromMemoryCache(
4265 const blink::WebURLRequest& request, 4265 const blink::WebURLRequest& request,
4266 const blink::WebURLResponse& response) { 4266 const blink::WebURLResponse& response) {
4267 // The recipients of this message have no use for data: URLs: they don't 4267 // The recipients of this message have no use for data: URLs: they don't
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
6501 // event target. Potentially a Pepper plugin will receive the event. 6501 // event target. Potentially a Pepper plugin will receive the event.
6502 // In order to tell whether a plugin gets the last mouse event and which it 6502 // In order to tell whether a plugin gets the last mouse event and which it
6503 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6503 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6504 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6504 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6505 // |pepper_last_mouse_event_target_|. 6505 // |pepper_last_mouse_event_target_|.
6506 pepper_last_mouse_event_target_ = nullptr; 6506 pepper_last_mouse_event_target_ = nullptr;
6507 #endif 6507 #endif
6508 } 6508 }
6509 6509
6510 } // namespace content 6510 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698