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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, Tests, Ready for Review Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser/frame_host/navigation_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/frame_host/frame_tree_node.h" 9 #include "content/browser/frame_host/frame_tree_node.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 WillRedirectRequest(new_url, new_method_is_post ? "POST" : "GET", 249 WillRedirectRequest(new_url, new_method_is_post ? "POST" : "GET",
250 new_referrer_url, new_is_external_protocol, 250 new_referrer_url, new_is_external_protocol,
251 scoped_refptr<net::HttpResponseHeaders>(), 251 scoped_refptr<net::HttpResponseHeaders>(),
252 base::Bind(&UpdateThrottleCheckResult, &result)); 252 base::Bind(&UpdateThrottleCheckResult, &result));
253 253
254 // Reset the callback to ensure it will not be called later. 254 // Reset the callback to ensure it will not be called later.
255 complete_callback_.Reset(); 255 complete_callback_.Reset();
256 return result; 256 return result;
257 } 257 }
258 258
259 NavigationData* NavigationHandleImpl::GetNavigationData() {
260 return navigation_data_.get();
261 }
262
259 void NavigationHandleImpl::InitServiceWorkerHandle( 263 void NavigationHandleImpl::InitServiceWorkerHandle(
260 ServiceWorkerContextWrapper* service_worker_context) { 264 ServiceWorkerContextWrapper* service_worker_context) {
261 DCHECK(IsBrowserSideNavigationEnabled()); 265 DCHECK(IsBrowserSideNavigationEnabled());
262 service_worker_handle_.reset( 266 service_worker_handle_.reset(
263 new ServiceWorkerNavigationHandle(service_worker_context)); 267 new ServiceWorkerNavigationHandle(service_worker_context));
264 } 268 }
265 269
266 void NavigationHandleImpl::WillStartRequest( 270 void NavigationHandleImpl::WillStartRequest(
267 const std::string& method, 271 const std::string& method,
268 const Referrer& sanitized_referrer, 272 const Referrer& sanitized_referrer,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 complete_callback_.Reset(); 485 complete_callback_.Reset();
482 486
483 if (!callback.is_null()) 487 if (!callback.is_null())
484 callback.Run(result); 488 callback.Run(result);
485 489
486 // No code after running the callback, as it might have resulted in our 490 // No code after running the callback, as it might have resulted in our
487 // destruction. 491 // destruction.
488 } 492 }
489 493
490 } // namespace content 494 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698