| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 395 |
| 396 void WebURLRequest::setUiStartTime(double timeSeconds) { | 396 void WebURLRequest::setUiStartTime(double timeSeconds) { |
| 397 m_resourceRequest->setUIStartTime(timeSeconds); | 397 m_resourceRequest->setUIStartTime(timeSeconds); |
| 398 } | 398 } |
| 399 | 399 |
| 400 bool WebURLRequest::isExternalRequest() const { | 400 bool WebURLRequest::isExternalRequest() const { |
| 401 return m_resourceRequest->isExternalRequest(); | 401 return m_resourceRequest->isExternalRequest(); |
| 402 } | 402 } |
| 403 | 403 |
| 404 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const { | 404 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const { |
| 405 if (m_resourceRequest->isMojoIPCForced()) |
| 406 return WebURLRequest::LoadingIPCType::Mojo; |
| 405 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) | 407 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) |
| 406 return WebURLRequest::LoadingIPCType::Mojo; | 408 return WebURLRequest::LoadingIPCType::Mojo; |
| 407 return WebURLRequest::LoadingIPCType::ChromeIPC; | 409 return WebURLRequest::LoadingIPCType::ChromeIPC; |
| 408 } | 410 } |
| 409 | 411 |
| 410 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { | 412 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { |
| 411 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); | 413 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); |
| 412 } | 414 } |
| 413 | 415 |
| 414 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) { | 416 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 428 } | 430 } |
| 429 | 431 |
| 430 const ResourceRequest& WebURLRequest::toResourceRequest() const { | 432 const ResourceRequest& WebURLRequest::toResourceRequest() const { |
| 431 DCHECK(m_resourceRequest); | 433 DCHECK(m_resourceRequest); |
| 432 return *m_resourceRequest; | 434 return *m_resourceRequest; |
| 433 } | 435 } |
| 434 | 436 |
| 435 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} | 437 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} |
| 436 | 438 |
| 437 } // namespace blink | 439 } // namespace blink |
| OLD | NEW |