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

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: fixing drp -> data_reduction_proxy 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 WillRedirectRequest(new_url, new_method_is_post ? "POST" : "GET", 261 WillRedirectRequest(new_url, new_method_is_post ? "POST" : "GET",
262 new_referrer_url, new_is_external_protocol, 262 new_referrer_url, new_is_external_protocol,
263 scoped_refptr<net::HttpResponseHeaders>(), 263 scoped_refptr<net::HttpResponseHeaders>(),
264 base::Bind(&UpdateThrottleCheckResult, &result)); 264 base::Bind(&UpdateThrottleCheckResult, &result));
265 265
266 // Reset the callback to ensure it will not be called later. 266 // Reset the callback to ensure it will not be called later.
267 complete_callback_.Reset(); 267 complete_callback_.Reset();
268 return result; 268 return result;
269 } 269 }
270 270
271 NavigationData* NavigationHandleImpl::GetNavigationData() {
272 return navigation_data_.get();
273 }
274
271 void NavigationHandleImpl::InitServiceWorkerHandle( 275 void NavigationHandleImpl::InitServiceWorkerHandle(
272 ServiceWorkerContextWrapper* service_worker_context) { 276 ServiceWorkerContextWrapper* service_worker_context) {
273 DCHECK(IsBrowserSideNavigationEnabled()); 277 DCHECK(IsBrowserSideNavigationEnabled());
274 service_worker_handle_.reset( 278 service_worker_handle_.reset(
275 new ServiceWorkerNavigationHandle(service_worker_context)); 279 new ServiceWorkerNavigationHandle(service_worker_context));
276 } 280 }
277 281
278 void NavigationHandleImpl::WillStartRequest( 282 void NavigationHandleImpl::WillStartRequest(
279 const std::string& method, 283 const std::string& method,
280 const Referrer& sanitized_referrer, 284 const Referrer& sanitized_referrer,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 complete_callback_.Reset(); 497 complete_callback_.Reset();
494 498
495 if (!callback.is_null()) 499 if (!callback.is_null())
496 callback.Run(result); 500 callback.Run(result);
497 501
498 // No code after running the callback, as it might have resulted in our 502 // No code after running the callback, as it might have resulted in our
499 // destruction. 503 // destruction.
500 } 504 }
501 505
502 } // namespace content 506 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698