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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoadRequest.cpp

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master Created 3 years, 9 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/loader/FrameLoadRequest.h" 5 #include "core/loader/FrameLoadRequest.h"
6 6
7 #include "platform/network/ResourceRequest.h" 7 #include "platform/loader/fetch/ResourceRequest.h"
8 #include "public/platform/WebURLRequest.h" 8 #include "public/platform/WebURLRequest.h"
9 #include "wtf/text/AtomicString.h" 9 #include "wtf/text/AtomicString.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 FrameLoadRequest::FrameLoadRequest(Document* originDocument) 13 FrameLoadRequest::FrameLoadRequest(Document* originDocument)
14 : FrameLoadRequest(originDocument, ResourceRequest()) {} 14 : FrameLoadRequest(originDocument, ResourceRequest()) {}
15 15
16 FrameLoadRequest::FrameLoadRequest(Document* originDocument, 16 FrameLoadRequest::FrameLoadRequest(Document* originDocument,
17 const ResourceRequest& resourceRequest) 17 const ResourceRequest& resourceRequest)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // URL as the initiator. 86 // URL as the initiator.
87 // TODO(mkwst): This should be `nullptr`. https://crbug.com/625969 87 // TODO(mkwst): This should be `nullptr`. https://crbug.com/625969
88 if (m_resourceRequest.frameType() == WebURLRequest::FrameTypeTopLevel) { 88 if (m_resourceRequest.frameType() == WebURLRequest::FrameTypeTopLevel) {
89 m_resourceRequest.setRequestorOrigin( 89 m_resourceRequest.setRequestorOrigin(
90 SecurityOrigin::create(resourceRequest.url())); 90 SecurityOrigin::create(resourceRequest.url()));
91 return; 91 return;
92 } 92 }
93 } 93 }
94 94
95 } // namespace blink 95 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698