OLD | NEW |
---|---|
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 return m_resourceRequest->isExternalRequest(); | 462 return m_resourceRequest->isExternalRequest(); |
463 } | 463 } |
464 | 464 |
465 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const | 465 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const |
466 { | 466 { |
467 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) | 467 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) |
468 return WebURLRequest::LoadingIPCType::Mojo; | 468 return WebURLRequest::LoadingIPCType::Mojo; |
469 return WebURLRequest::LoadingIPCType::ChromeIPC; | 469 return WebURLRequest::LoadingIPCType::ChromeIPC; |
470 } | 470 } |
471 | 471 |
472 void WebURLRequest::setNavigationStartTime(double navigationStart) | |
jochen (gone - plz use gerrit)
2016/09/19 14:55:33
please add a unit to the variable name or method n
arthursonzogni
2016/09/20 11:02:34
Done.
For consistency, maybe it should be done als
| |
473 { | |
474 m_resourceRequest->setNavigationStartTime(navigationStart); | |
475 } | |
476 | |
472 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const | 477 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const |
473 { | 478 { |
474 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( | 479 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( |
475 m_resourceRequest->inputPerfMetricReportPolicy()); | 480 m_resourceRequest->inputPerfMetricReportPolicy()); |
476 } | 481 } |
477 | 482 |
478 void WebURLRequest::setInputPerfMetricReportPolicy( | 483 void WebURLRequest::setInputPerfMetricReportPolicy( |
479 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) | 484 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) |
480 { | 485 { |
481 m_resourceRequest->setInputPerfMetricReportPolicy( | 486 m_resourceRequest->setInputPerfMetricReportPolicy( |
482 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); | 487 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); |
483 } | 488 } |
484 | 489 |
485 const ResourceRequest& WebURLRequest::toResourceRequest() const | 490 const ResourceRequest& WebURLRequest::toResourceRequest() const |
486 { | 491 { |
487 DCHECK(m_resourceRequest); | 492 DCHECK(m_resourceRequest); |
488 return *m_resourceRequest; | 493 return *m_resourceRequest; |
489 } | 494 } |
490 | 495 |
491 WebURLRequest::WebURLRequest(ResourceRequest& r) | 496 WebURLRequest::WebURLRequest(ResourceRequest& r) |
492 : m_resourceRequest(&r) | 497 : m_resourceRequest(&r) |
493 { | 498 { |
494 } | 499 } |
495 | 500 |
496 } // namespace blink | 501 } // namespace blink |
OLD | NEW |