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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index 4e79c38365fb3169b172f2193f3e6189e12b5b38..a5b61bd64a86aeb15d6c1569fbc28c3db81b538e 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -45,21 +45,21 @@ class SecurityOrigin;
class CORE_EXPORT ImageResource final : public Resource, public ImageObserver, public MultipartImageResourceParser::Client {
friend class MemoryCache;
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ImageResource);
+ USING_GARBAGE_COLLECTED_MIXIN(ImageResource);
public:
using ClientType = ResourceClient;
- static PassRefPtrWillBeRawPtr<ImageResource> fetch(FetchRequest&, ResourceFetcher*);
+ static RawPtr<ImageResource> fetch(FetchRequest&, ResourceFetcher*);
- static PassRefPtrWillBeRawPtr<ImageResource> create(blink::Image* image)
+ static RawPtr<ImageResource> create(blink::Image* image)
{
- return adoptRefWillBeNoop(new ImageResource(image, ResourceLoaderOptions()));
+ return new ImageResource(image, ResourceLoaderOptions());
}
// Exposed for testing
- static PassRefPtrWillBeRawPtr<ImageResource> create(const ResourceRequest& request, blink::Image* image)
+ static RawPtr<ImageResource> create(const ResourceRequest& request, blink::Image* image)
{
- return adoptRefWillBeNoop(new ImageResource(request, image, ResourceLoaderOptions()));
+ return new ImageResource(request, image, ResourceLoaderOptions());
}
~ImageResource() override;
@@ -143,9 +143,9 @@ private:
ImageResourceFactory()
: ResourceFactory(Resource::Image) { }
- PassRefPtrWillBeRawPtr<Resource> create(const ResourceRequest& request, const ResourceLoaderOptions& options, const String&) const override
+ RawPtr<Resource> create(const ResourceRequest& request, const ResourceLoaderOptions& options, const String&) const override
{
- return adoptRefWillBeNoop(new ImageResource(request, options));
+ return new ImageResource(request, options);
}
};
ImageResource(const ResourceRequest&, const ResourceLoaderOptions&);
@@ -162,7 +162,7 @@ private:
float m_devicePixelRatioHeaderValue;
- PersistentWillBeMember<MultipartImageResourceParser> m_multipartParser;
+ Member<MultipartImageResourceParser> m_multipartParser;
RefPtr<blink::Image> m_image;
MultipartParsingState m_multipartParsingState = MultipartParsingState::WaitingForFirstPart;
bool m_hasDevicePixelRatioHeaderValue;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FontResource.cpp ('k') | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698