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 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "public/platform/WebURLRequest.h" | 31 #include "public/platform/WebURLRequest.h" |
32 | 32 |
| 33 #include "platform/RuntimeEnabledFeatures.h" |
33 #include "platform/exported/WebURLRequestPrivate.h" | 34 #include "platform/exported/WebURLRequestPrivate.h" |
34 #include "platform/network/ResourceRequest.h" | 35 #include "platform/network/ResourceRequest.h" |
35 #include "public/platform/WebCachePolicy.h" | 36 #include "public/platform/WebCachePolicy.h" |
36 #include "public/platform/WebHTTPBody.h" | 37 #include "public/platform/WebHTTPBody.h" |
37 #include "public/platform/WebHTTPHeaderVisitor.h" | 38 #include "public/platform/WebHTTPHeaderVisitor.h" |
38 #include "public/platform/WebSecurityOrigin.h" | 39 #include "public/platform/WebSecurityOrigin.h" |
39 #include "public/platform/WebURL.h" | 40 #include "public/platform/WebURL.h" |
40 #include "wtf/Allocator.h" | 41 #include "wtf/Allocator.h" |
41 #include "wtf/Noncopyable.h" | 42 #include "wtf/Noncopyable.h" |
42 #include "wtf/PtrUtil.h" | 43 #include "wtf/PtrUtil.h" |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 void WebURLRequest::setUiStartTime(double time) | 455 void WebURLRequest::setUiStartTime(double time) |
455 { | 456 { |
456 m_private->m_resourceRequest->setUIStartTime(time); | 457 m_private->m_resourceRequest->setUIStartTime(time); |
457 } | 458 } |
458 | 459 |
459 bool WebURLRequest::isExternalRequest() const | 460 bool WebURLRequest::isExternalRequest() const |
460 { | 461 { |
461 return m_private->m_resourceRequest->isExternalRequest(); | 462 return m_private->m_resourceRequest->isExternalRequest(); |
462 } | 463 } |
463 | 464 |
| 465 WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const |
| 466 { |
| 467 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) |
| 468 return WebURLRequest::LoadingIPCType::Mojo; |
| 469 return WebURLRequest::LoadingIPCType::ChromeIPC; |
| 470 } |
| 471 |
464 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR
eportPolicy() const | 472 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR
eportPolicy() const |
465 { | 473 { |
466 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( | 474 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( |
467 m_private->m_resourceRequest->inputPerfMetricReportPolicy()); | 475 m_private->m_resourceRequest->inputPerfMetricReportPolicy()); |
468 } | 476 } |
469 | 477 |
470 void WebURLRequest::setInputPerfMetricReportPolicy( | 478 void WebURLRequest::setInputPerfMetricReportPolicy( |
471 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) | 479 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) |
472 { | 480 { |
473 m_private->m_resourceRequest->setInputPerfMetricReportPolicy( | 481 m_private->m_resourceRequest->setInputPerfMetricReportPolicy( |
(...skipping 13 matching lines...) Expand all Loading... |
487 // Subclasses may call this directly so a self-assignment check is needed | 495 // Subclasses may call this directly so a self-assignment check is needed |
488 // here as well as in the public assign method. | 496 // here as well as in the public assign method. |
489 if (m_private == p) | 497 if (m_private == p) |
490 return; | 498 return; |
491 if (m_private) | 499 if (m_private) |
492 m_private->dispose(); | 500 m_private->dispose(); |
493 m_private = p; | 501 m_private = p; |
494 } | 502 } |
495 | 503 |
496 } // namespace blink | 504 } // namespace blink |
OLD | NEW |