| OLD | NEW |
| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 std::unique_ptr<WebDataConsumerHandle>) override; | 136 std::unique_ptr<WebDataConsumerHandle>) override; |
| 137 void finish(double finishTime = 0.0) override; | 137 void finish(double finishTime = 0.0) override; |
| 138 | 138 |
| 139 // For compatibility, images keep loading even if there are HTTP errors. | 139 // For compatibility, images keep loading even if there are HTTP errors. |
| 140 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 140 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } |
| 141 | 141 |
| 142 bool isImage() const override { return true; } | 142 bool isImage() const override { return true; } |
| 143 | 143 |
| 144 // ImageObserver | 144 // ImageObserver |
| 145 void decodedSizeChangedTo(const blink::Image*, size_t newSize) override; | 145 void decodedSizeChangedTo(const blink::Image*, size_t newSize) override; |
| 146 void didDraw(const blink::Image*) override; | |
| 147 | 146 |
| 148 bool shouldPauseAnimation(const blink::Image*) override; | 147 bool shouldPauseAnimation(const blink::Image*) override; |
| 149 void animationAdvanced(const blink::Image*) override; | 148 void animationAdvanced(const blink::Image*) override; |
| 150 void changedInRect(const blink::Image*, const IntRect&) override; | 149 void changedInRect(const blink::Image*, const IntRect&) override; |
| 151 | 150 |
| 152 // MultipartImageResourceParser::Client | 151 // MultipartImageResourceParser::Client |
| 153 void onePartInMultipartReceived(const ResourceResponse&) final; | 152 void onePartInMultipartReceived(const ResourceResponse&) final; |
| 154 void multipartDataReceived(const char*, size_t) final; | 153 void multipartDataReceived(const char*, size_t) final; |
| 155 | 154 |
| 156 // Used by tests. | 155 // Used by tests. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // Indicates if this resource's encoded image data can be purged and refetched | 231 // Indicates if this resource's encoded image data can be purged and refetched |
| 233 // from disk cache to save memory usage. See crbug/664437. | 232 // from disk cache to save memory usage. See crbug/664437. |
| 234 bool m_isRefetchableDataFromDiskCache; | 233 bool m_isRefetchableDataFromDiskCache; |
| 235 }; | 234 }; |
| 236 | 235 |
| 237 DEFINE_RESOURCE_TYPE_CASTS(Image); | 236 DEFINE_RESOURCE_TYPE_CASTS(Image); |
| 238 | 237 |
| 239 } // namespace blink | 238 } // namespace blink |
| 240 | 239 |
| 241 #endif | 240 #endif |
| OLD | NEW |