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

Unified Diff: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2140523002: Remove WebURLRequest::initialize() and simplify WebURLRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mutable ref Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebDataSourceImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
index 6a086e9afd60db29d40e55a92a43b18f7d1a0096..4f97c507dcba9da265a39642461fd1ff2e436623 100644
--- a/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDataSourceImpl.cpp
@@ -47,13 +47,11 @@ WebDataSourceImpl* WebDataSourceImpl::create(LocalFrame* frame, const ResourceRe
const WebURLRequest& WebDataSourceImpl::originalRequest() const
{
- m_originalRequestWrapper.bind(DocumentLoader::originalRequest());
return m_originalRequestWrapper;
}
const WebURLRequest& WebDataSourceImpl::request() const
{
- m_requestWrapper.bind(DocumentLoader::request());
return m_requestWrapper;
}
@@ -134,6 +132,8 @@ WebNavigationType WebDataSourceImpl::toWebNavigationType(NavigationType type)
WebDataSourceImpl::WebDataSourceImpl(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& data)
: DocumentLoader(frame, request, data)
+ , m_originalRequestWrapper(DocumentLoader::originalRequest())
+ , m_requestWrapper(DocumentLoader::request())
, m_responseWrapper(DocumentLoader::response())
{
}
« no previous file with comments | « third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698