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

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

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 4473 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager, 4484 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager,
4485 // ResourceDispatcherHostImpl, MediaStreamUIProxy, 4485 // ResourceDispatcherHostImpl, MediaStreamUIProxy,
4486 // SpeechRecognitionDispatcherHost and possibly others). They look up the view 4486 // SpeechRecognitionDispatcherHost and possibly others). They look up the view
4487 // based on the ID stored in the resource requests. Once those dependencies 4487 // based on the ID stored in the resource requests. Once those dependencies
4488 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the 4488 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the
4489 // client to be based on the routing_id of the RenderFrameHost. 4489 // client to be based on the routing_id of the RenderFrameHost.
4490 params.render_view_routing_id = render_view_->routing_id(); 4490 params.render_view_routing_id = render_view_->routing_id();
4491 params.socket_address.set_host(response.remoteIPAddress().utf8()); 4491 params.socket_address.set_host(response.remoteIPAddress().utf8());
4492 params.socket_address.set_port(response.remotePort()); 4492 params.socket_address.set_port(response.remotePort());
4493 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); 4493 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response);
4494 if (extra_data) 4494 if (extra_data) {
4495 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy(); 4495 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy();
4496 params.was_fetched_via_data_reduction_proxy =
4497 extra_data->was_fetched_via_data_reduction_proxy();
4498 params.is_using_lofi = extra_data->is_using_lofi();
4499 }
4496 params.was_within_same_page = navigation_state->WasWithinSamePage(); 4500 params.was_within_same_page = navigation_state->WasWithinSamePage();
4497 params.security_info = response.securityInfo(); 4501 params.security_info = response.securityInfo();
4498 4502
4499 // Set the origin of the frame. This will be replicated to the corresponding 4503 // Set the origin of the frame. This will be replicated to the corresponding
4500 // RenderFrameProxies in other processes. 4504 // RenderFrameProxies in other processes.
4501 // TODO(alexmos): Origins for URLs with non-standard schemes are excluded due 4505 // TODO(alexmos): Origins for URLs with non-standard schemes are excluded due
4502 // to https://crbug.com/439608 and will be replicated as unique origins. 4506 // to https://crbug.com/439608 and will be replicated as unique origins.
4503 if (!is_swapped_out_) { 4507 if (!is_swapped_out_) {
4504 std::string scheme = frame->document().securityOrigin().protocol().utf8(); 4508 std::string scheme = frame->document().securityOrigin().protocol().utf8();
4505 if (url::IsStandard(scheme.c_str(), 4509 if (url::IsStandard(scheme.c_str(),
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after
6126 int match_count, 6130 int match_count,
6127 int ordinal, 6131 int ordinal,
6128 const WebRect& selection_rect, 6132 const WebRect& selection_rect,
6129 bool final_status_update) { 6133 bool final_status_update) {
6130 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6134 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6131 selection_rect, ordinal, 6135 selection_rect, ordinal,
6132 final_status_update)); 6136 final_status_update));
6133 } 6137 }
6134 6138
6135 } // namespace content 6139 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698