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

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

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Rebase. Created 3 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 /* 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const { 403 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const {
404 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) 404 if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
405 return WebURLRequest::LoadingIPCType::Mojo; 405 return WebURLRequest::LoadingIPCType::Mojo;
406 return WebURLRequest::LoadingIPCType::ChromeIPC; 406 return WebURLRequest::LoadingIPCType::ChromeIPC;
407 } 407 }
408 408
409 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { 409 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) {
410 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); 410 m_resourceRequest->setNavigationStartTime(navigationStartSeconds);
411 } 411 }
412 412
413 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) {
414 m_resourceRequest->setIsSameDocumentNavigation(isSameDocument);
415 }
416
413 WebURLRequest::InputToLoadPerfMetricReportPolicy 417 WebURLRequest::InputToLoadPerfMetricReportPolicy
414 WebURLRequest::inputPerfMetricReportPolicy() const { 418 WebURLRequest::inputPerfMetricReportPolicy() const {
415 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 419 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
416 m_resourceRequest->inputPerfMetricReportPolicy()); 420 m_resourceRequest->inputPerfMetricReportPolicy());
417 } 421 }
418 422
419 void WebURLRequest::setInputPerfMetricReportPolicy( 423 void WebURLRequest::setInputPerfMetricReportPolicy(
420 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) { 424 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) {
421 m_resourceRequest->setInputPerfMetricReportPolicy( 425 m_resourceRequest->setInputPerfMetricReportPolicy(
422 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); 426 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy));
423 } 427 }
424 428
425 const ResourceRequest& WebURLRequest::toResourceRequest() const { 429 const ResourceRequest& WebURLRequest::toResourceRequest() const {
426 DCHECK(m_resourceRequest); 430 DCHECK(m_resourceRequest);
427 return *m_resourceRequest; 431 return *m_resourceRequest;
428 } 432 }
429 433
430 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 434 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {}
431 435
432 } // namespace blink 436 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698