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

Side by Side Diff: Source/core/fetch/LinkFetchResource.h

Issue 1229743005: Fix virtual/override/final usage in Source/core/{fetch,loader,streams,xmlhttprequest}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/ImageResourceClient.h ('k') | Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5
6 #ifndef LinkFetchResource_h 6 #ifndef LinkFetchResource_h
7 #define LinkFetchResource_h 7 #define LinkFetchResource_h
8 8
9 #include "core/fetch/Resource.h" 9 #include "core/fetch/Resource.h"
10 #include "core/fetch/ResourceClient.h" 10 #include "core/fetch/ResourceClient.h"
11 #include "core/fetch/ResourcePtr.h" 11 #include "core/fetch/ResourcePtr.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class FetchRequest; 15 class FetchRequest;
16 class ResourceFetcher; 16 class ResourceFetcher;
17 17
18 class LinkFetchResource final : public Resource { 18 class LinkFetchResource final : public Resource {
19 public: 19 public:
20 typedef ResourceClient ClientType; 20 typedef ResourceClient ClientType;
21 21
22 static ResourcePtr<Resource> fetch(Resource::Type, FetchRequest&, ResourceFe tcher*); 22 static ResourcePtr<Resource> fetch(Resource::Type, FetchRequest&, ResourceFe tcher*);
23 virtual ~LinkFetchResource(); 23 ~LinkFetchResource() override;
24 24
25 private: 25 private:
26 class LinkResourceFactory : public ResourceFactory { 26 class LinkResourceFactory : public ResourceFactory {
27 public: 27 public:
28 LinkResourceFactory(Resource::Type type) 28 LinkResourceFactory(Resource::Type type)
29 : ResourceFactory(type) { } 29 : ResourceFactory(type) { }
30 30
31 Resource* create(const ResourceRequest& request, const String& charset) const override 31 Resource* create(const ResourceRequest& request, const String& charset) const override
32 { 32 {
33 return new LinkFetchResource(request, type()); 33 return new LinkFetchResource(request, type());
34 } 34 }
35 }; 35 };
36 LinkFetchResource(const ResourceRequest&, Type); 36 LinkFetchResource(const ResourceRequest&, Type);
37 }; 37 };
38 38
39 } 39 }
40 40
41 #endif // LinkFetchResource_h 41 #endif // LinkFetchResource_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ImageResourceClient.h ('k') | Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698