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

Unified Diff: third_party/WebKit/Source/core/fetch/LinkFetchResource.h

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 years, 10 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/core/fetch/LinkFetchResource.h
diff --git a/third_party/WebKit/Source/core/fetch/LinkFetchResource.h b/third_party/WebKit/Source/core/fetch/LinkFetchResource.h
index 654716d58f4284f198b51fc906f153282722e6fb..62d71315b3fb82dc30bc96c6b8f9948c63e921e5 100644
--- a/third_party/WebKit/Source/core/fetch/LinkFetchResource.h
+++ b/third_party/WebKit/Source/core/fetch/LinkFetchResource.h
@@ -8,7 +8,6 @@
#include "core/fetch/Resource.h"
#include "core/fetch/ResourceClient.h"
-#include "core/fetch/ResourcePtr.h"
namespace blink {
@@ -19,7 +18,7 @@ class LinkFetchResource final : public Resource {
public:
using ClientType = ResourceClient;
- static ResourcePtr<Resource> fetch(Resource::Type, FetchRequest&, ResourceFetcher*);
+ static PassRefPtrWillBeRawPtr<Resource> fetch(Resource::Type, FetchRequest&, ResourceFetcher*);
~LinkFetchResource() override;
private:
@@ -28,9 +27,9 @@ private:
LinkResourceFactory(Resource::Type type)
: ResourceFactory(type) { }
- Resource* create(const ResourceRequest& request, const String& charset) const override
+ PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request, const String& charset) const override
{
- return new LinkFetchResource(request, type());
+ return adoptRefWillBeNoop(new LinkFetchResource(request, type()));
}
};
LinkFetchResource(const ResourceRequest&, Type);
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp ('k') | third_party/WebKit/Source/core/fetch/LinkFetchResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698