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

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

Issue 2746343002: Phase III Step 1: Make ImageResourceContent manage its own ResourceStatus (Closed)
Patch Set: Rewind Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void allClientsAndObserversRemoved() override; 81 void allClientsAndObserversRemoved() override;
82 82
83 bool canReuse(const FetchRequest&) const override; 83 bool canReuse(const FetchRequest&) const override;
84 84
85 PassRefPtr<const SharedBuffer> resourceBuffer() const override; 85 PassRefPtr<const SharedBuffer> resourceBuffer() const override;
86 void appendData(const char*, size_t) override; 86 void appendData(const char*, size_t) override;
87 void error(const ResourceError&) override; 87 void error(const ResourceError&) override;
88 void responseReceived(const ResourceResponse&, 88 void responseReceived(const ResourceResponse&,
89 std::unique_ptr<WebDataConsumerHandle>) override; 89 std::unique_ptr<WebDataConsumerHandle>) override;
90 void finish(double finishTime = 0.0) override; 90 void finish(double finishTime = 0.0) override;
91 void notifyStartLoad() override;
91 92
92 // For compatibility, images keep loading even if there are HTTP errors. 93 // For compatibility, images keep loading even if there are HTTP errors.
93 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } 94 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; }
94 95
95 bool isImage() const override { return true; } 96 bool isImage() const override { return true; }
96 97
97 // MultipartImageResourceParser::Client 98 // MultipartImageResourceParser::Client
98 void onePartInMultipartReceived(const ResourceResponse&) final; 99 void onePartInMultipartReceived(const ResourceResponse&) final;
99 void multipartDataReceived(const char*, size_t) final; 100 void multipartDataReceived(const char*, size_t) final;
100 101
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 Timer<ImageResource> m_flushTimer; 169 Timer<ImageResource> m_flushTimer;
169 double m_lastFlushTime = 0.; 170 double m_lastFlushTime = 0.;
170 }; 171 };
171 172
172 DEFINE_RESOURCE_TYPE_CASTS(Image); 173 DEFINE_RESOURCE_TYPE_CASTS(Image);
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif 177 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698