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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Rebase Created 4 years, 2 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } 385 }
386 386
387 void WebURLRequest::setCheckForBrowserSideNavigation(bool check) { 387 void WebURLRequest::setCheckForBrowserSideNavigation(bool check) {
388 m_resourceRequest->setCheckForBrowserSideNavigation(check); 388 m_resourceRequest->setCheckForBrowserSideNavigation(check);
389 } 389 }
390 390
391 double WebURLRequest::uiStartTime() const { 391 double WebURLRequest::uiStartTime() const {
392 return m_resourceRequest->uiStartTime(); 392 return m_resourceRequest->uiStartTime();
393 } 393 }
394 394
395 void WebURLRequest::setUiStartTime(double time) { 395 void WebURLRequest::setUiStartTime(double timeSeconds) {
396 m_resourceRequest->setUIStartTime(time); 396 m_resourceRequest->setUIStartTime(timeSeconds);
397 } 397 }
398 398
399 bool WebURLRequest::isExternalRequest() const { 399 bool WebURLRequest::isExternalRequest() const {
400 return m_resourceRequest->isExternalRequest(); 400 return m_resourceRequest->isExternalRequest();
401 } 401 }
402 402
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) {
410 m_resourceRequest->setNavigationStartTime(navigationStartSeconds);
411 }
412
409 WebURLRequest::InputToLoadPerfMetricReportPolicy 413 WebURLRequest::InputToLoadPerfMetricReportPolicy
410 WebURLRequest::inputPerfMetricReportPolicy() const { 414 WebURLRequest::inputPerfMetricReportPolicy() const {
411 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 415 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
412 m_resourceRequest->inputPerfMetricReportPolicy()); 416 m_resourceRequest->inputPerfMetricReportPolicy());
413 } 417 }
414 418
415 void WebURLRequest::setInputPerfMetricReportPolicy( 419 void WebURLRequest::setInputPerfMetricReportPolicy(
416 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) { 420 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) {
417 m_resourceRequest->setInputPerfMetricReportPolicy( 421 m_resourceRequest->setInputPerfMetricReportPolicy(
418 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); 422 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy));
419 } 423 }
420 424
421 const ResourceRequest& WebURLRequest::toResourceRequest() const { 425 const ResourceRequest& WebURLRequest::toResourceRequest() const {
422 DCHECK(m_resourceRequest); 426 DCHECK(m_resourceRequest);
423 return *m_resourceRequest; 427 return *m_resourceRequest;
424 } 428 }
425 429
426 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 430 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {}
427 431
428 } // namespace blink 432 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698