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

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

Issue 2652123002: PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClie… (Closed)
Patch Set: 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 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::setNavigationInitiatedByRenderer(
414 bool navigationInitiatedByRenderer) {
415 m_resourceRequest->setNavigationInitiatedByRenderer(
416 navigationInitiatedByRenderer);
417 }
418
419 bool WebURLRequest::getNavigationInitiatedByRenderer() const {
420 return m_resourceRequest->getNavigationInitiatedByRenderer();
421 }
422
413 WebURLRequest::InputToLoadPerfMetricReportPolicy 423 WebURLRequest::InputToLoadPerfMetricReportPolicy
414 WebURLRequest::inputPerfMetricReportPolicy() const { 424 WebURLRequest::inputPerfMetricReportPolicy() const {
415 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 425 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
416 m_resourceRequest->inputPerfMetricReportPolicy()); 426 m_resourceRequest->inputPerfMetricReportPolicy());
417 } 427 }
418 428
419 void WebURLRequest::setInputPerfMetricReportPolicy( 429 void WebURLRequest::setInputPerfMetricReportPolicy(
420 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) { 430 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) {
421 m_resourceRequest->setInputPerfMetricReportPolicy( 431 m_resourceRequest->setInputPerfMetricReportPolicy(
422 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); 432 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy));
423 } 433 }
424 434
425 const ResourceRequest& WebURLRequest::toResourceRequest() const { 435 const ResourceRequest& WebURLRequest::toResourceRequest() const {
426 DCHECK(m_resourceRequest); 436 DCHECK(m_resourceRequest);
427 return *m_resourceRequest; 437 return *m_resourceRequest;
428 } 438 }
429 439
430 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 440 WebURLRequest::WebURLRequest(ResourceRequest& r)
441 : m_resourceRequest(&r) {}
431 442
432 } // namespace blink 443 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698