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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |