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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/LinkFetchResource.h

Issue 2816403002: test all
Patch Set: fix sharedworker Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef LinkFetchResource_h 5 #ifndef LinkFetchResource_h
6 #define LinkFetchResource_h 6 #define LinkFetchResource_h
7 7
8 #include "platform/loader/fetch/Resource.h" 8 #include "platform/loader/fetch/Resource.h"
9 #include "platform/loader/fetch/ResourceClient.h" 9 #include "platform/loader/fetch/ResourceClient.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class FetchParameters; 13 class FetchParameters;
14 class ResourceFetcher; 14 class ResourceFetcher;
15 15
16 class LinkFetchResource final : public Resource { 16 class LinkFetchResource final : public Resource {
17 public: 17 public:
18 using ClientType = ResourceClient; 18 using ClientType = ResourceClient;
19 19
20 static Resource* Fetch(Resource::Type, FetchParameters&, ResourceFetcher*); 20 static Resource* Fetch(Resource::Type, FetchParameters&, ResourceFetcher*);
21 ~LinkFetchResource() override; 21 ~LinkFetchResource() override;
22 22
23 private: 23 private:
24 class LinkResourceFactory : public ResourceFactory { 24 class LinkResourceFactory : public ResourceFactory {
25 public: 25 public:
26 explicit LinkResourceFactory(Resource::Type type) : ResourceFactory(type) {} 26 explicit LinkResourceFactory(Resource::Type type) : ResourceFactory(type) {}
27 27
28 Resource* Create(const ResourceRequest& request, 28 Resource* Create(const ResourceRequest& request,
29 const ResourceLoaderOptions& options, 29 const ResourceLoaderOptions& options,
30 const String& charset) const override { 30 const String& charset,
31 FetchContext*) const override {
31 return new LinkFetchResource(request, GetType(), options); 32 return new LinkFetchResource(request, GetType(), options);
32 } 33 }
33 }; 34 };
34 LinkFetchResource(const ResourceRequest&, Type, const ResourceLoaderOptions&); 35 LinkFetchResource(const ResourceRequest&, Type, const ResourceLoaderOptions&);
35 }; 36 };
36 37
37 } // namespace blink 38 } // namespace blink
38 39
39 #endif // LinkFetchResource_h 40 #endif // LinkFetchResource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698