| 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::appendPreviousResponse(const WebURLResponse& response) |
| 473 { |
| 474 m_resourceRequest->appendPreviousResponse(response); |
| 475 } |
| 476 |
| 477 void WebURLRequest::setPreviousNavigationStart(double navigationStart) |
| 478 { |
| 479 m_resourceRequest->setPreviousNavigationStart(navigationStart); |
| 480 } |
| 481 |
| 472 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR
eportPolicy() const | 482 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR
eportPolicy() const |
| 473 { | 483 { |
| 474 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( | 484 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( |
| 475 m_resourceRequest->inputPerfMetricReportPolicy()); | 485 m_resourceRequest->inputPerfMetricReportPolicy()); |
| 476 } | 486 } |
| 477 | 487 |
| 478 void WebURLRequest::setInputPerfMetricReportPolicy( | 488 void WebURLRequest::setInputPerfMetricReportPolicy( |
| 479 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) | 489 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) |
| 480 { | 490 { |
| 481 m_resourceRequest->setInputPerfMetricReportPolicy( | 491 m_resourceRequest->setInputPerfMetricReportPolicy( |
| 482 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); | 492 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); |
| 483 } | 493 } |
| 484 | 494 |
| 485 const ResourceRequest& WebURLRequest::toResourceRequest() const | 495 const ResourceRequest& WebURLRequest::toResourceRequest() const |
| 486 { | 496 { |
| 487 DCHECK(m_resourceRequest); | 497 DCHECK(m_resourceRequest); |
| 488 return *m_resourceRequest; | 498 return *m_resourceRequest; |
| 489 } | 499 } |
| 490 | 500 |
| 491 WebURLRequest::WebURLRequest(ResourceRequest& r) | 501 WebURLRequest::WebURLRequest(ResourceRequest& r) |
| 492 : m_resourceRequest(&r) | 502 : m_resourceRequest(&r) |
| 493 { | 503 { |
| 494 } | 504 } |
| 495 | 505 |
| 496 } // namespace blink | 506 } // namespace blink |
| OLD | NEW |