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

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

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 12 matching lines...) Expand all
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 43
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void WebURLRequest::setUiStartTime(double time) 453 void WebURLRequest::setUiStartTime(double time)
453 { 454 {
454 m_private->m_resourceRequest->setUIStartTime(time); 455 m_private->m_resourceRequest->setUIStartTime(time);
455 } 456 }
456 457
457 bool WebURLRequest::isExternalRequest() const 458 bool WebURLRequest::isExternalRequest() const
458 { 459 {
459 return m_private->m_resourceRequest->isExternalRequest(); 460 return m_private->m_resourceRequest->isExternalRequest();
460 } 461 }
461 462
463 WebURLRequest::LoadingIPC WebURLRequest::loadingIPC() const
464 {
465 if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
466 return WebURLRequest::LoadingIPC::Mojo;
467 return WebURLRequest::LoadingIPC::ChromeIPC;
468 }
469
462 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const 470 WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricR eportPolicy() const
463 { 471 {
464 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 472 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
465 m_private->m_resourceRequest->inputPerfMetricReportPolicy()); 473 m_private->m_resourceRequest->inputPerfMetricReportPolicy());
466 } 474 }
467 475
468 void WebURLRequest::setInputPerfMetricReportPolicy( 476 void WebURLRequest::setInputPerfMetricReportPolicy(
469 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) 477 WebURLRequest::InputToLoadPerfMetricReportPolicy policy)
470 { 478 {
471 m_private->m_resourceRequest->setInputPerfMetricReportPolicy( 479 m_private->m_resourceRequest->setInputPerfMetricReportPolicy(
(...skipping 13 matching lines...) Expand all
485 // Subclasses may call this directly so a self-assignment check is needed 493 // Subclasses may call this directly so a self-assignment check is needed
486 // here as well as in the public assign method. 494 // here as well as in the public assign method.
487 if (m_private == p) 495 if (m_private == p)
488 return; 496 return;
489 if (m_private) 497 if (m_private)
490 m_private->dispose(); 498 m_private->dispose();
491 m_private = p; 499 m_private = p;
492 } 500 }
493 501
494 } // namespace blink 502 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698