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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLRequest.cpp

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Fix 2 WebContentsImplTest by assigning a document_sequence_number. Created 3 years, 11 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const { 402 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const {
403 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) 403 if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
404 return WebURLRequest::LoadingIPCType::Mojo; 404 return WebURLRequest::LoadingIPCType::Mojo;
405 return WebURLRequest::LoadingIPCType::ChromeIPC; 405 return WebURLRequest::LoadingIPCType::ChromeIPC;
406 } 406 }
407 407
408 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { 408 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) {
409 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); 409 m_resourceRequest->setNavigationStartTime(navigationStartSeconds);
410 } 410 }
411 411
412 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) {
413 m_resourceRequest->setIsSameDocumentNavigation(isSameDocument);
414 }
415
412 WebURLRequest::InputToLoadPerfMetricReportPolicy 416 WebURLRequest::InputToLoadPerfMetricReportPolicy
413 WebURLRequest::inputPerfMetricReportPolicy() const { 417 WebURLRequest::inputPerfMetricReportPolicy() const {
414 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 418 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
415 m_resourceRequest->inputPerfMetricReportPolicy()); 419 m_resourceRequest->inputPerfMetricReportPolicy());
416 } 420 }
417 421
418 void WebURLRequest::setInputPerfMetricReportPolicy( 422 void WebURLRequest::setInputPerfMetricReportPolicy(
419 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) { 423 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) {
420 m_resourceRequest->setInputPerfMetricReportPolicy( 424 m_resourceRequest->setInputPerfMetricReportPolicy(
421 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); 425 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy));
422 } 426 }
423 427
424 const ResourceRequest& WebURLRequest::toResourceRequest() const { 428 const ResourceRequest& WebURLRequest::toResourceRequest() const {
425 DCHECK(m_resourceRequest); 429 DCHECK(m_resourceRequest);
426 return *m_resourceRequest; 430 return *m_resourceRequest;
427 } 431 }
428 432
429 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 433 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {}
430 434
431 } // namespace blink 435 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698