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

Side by Side Diff: third_party/WebKit/Source/core/fetch/LinkFetchResource.cpp

Issue 2497463004: Loading: move core/fetch/*Resource* to core/loader/resource/ (Closed)
Patch Set: [rebase] Created 4 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/fetch/LinkFetchResource.h"
6
7 #include "core/fetch/FetchRequest.h"
8 #include "core/fetch/ResourceFetcher.h"
9
10 namespace blink {
11
12 Resource* LinkFetchResource::fetch(Resource::Type type,
13 FetchRequest& request,
14 ResourceFetcher* fetcher) {
15 DCHECK_EQ(type, LinkPrefetch);
16 DCHECK_EQ(request.resourceRequest().frameType(),
17 WebURLRequest::FrameTypeNone);
18 fetcher->determineRequestContext(request.mutableResourceRequest(), type);
19 return fetcher->requestResource(request, LinkResourceFactory(type));
20 }
21
22 LinkFetchResource::LinkFetchResource(const ResourceRequest& request,
23 Type type,
24 const ResourceLoaderOptions& options)
25 : Resource(request, type, options) {}
26
27 LinkFetchResource::~LinkFetchResource() {}
28
29 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/LinkFetchResource.h ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698