| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void reloadIfLoFi(ResourceFetcher*); | 92 void reloadIfLoFi(ResourceFetcher*); |
| 93 | 93 |
| 94 void addObserver(ImageResourceObserver*); | 94 void addObserver(ImageResourceObserver*); |
| 95 void removeObserver(ImageResourceObserver*); | 95 void removeObserver(ImageResourceObserver*); |
| 96 bool hasClientsOrObservers() const override { return Resource::hasClientsOrO
bservers() || !m_observers.isEmpty() || !m_finishedObservers.isEmpty(); } | 96 bool hasClientsOrObservers() const override { return Resource::hasClientsOrO
bservers() || !m_observers.isEmpty() || !m_finishedObservers.isEmpty(); } |
| 97 | 97 |
| 98 ResourcePriority priorityFromObservers() override; | 98 ResourcePriority priorityFromObservers() override; |
| 99 | 99 |
| 100 void allClientsAndObserversRemoved() override; | 100 void allClientsAndObserversRemoved() override; |
| 101 | 101 |
| 102 PassRefPtr<SharedBuffer> resourceBuffer() const override; |
| 102 void appendData(const char*, size_t) override; | 103 void appendData(const char*, size_t) override; |
| 103 void error(const ResourceError&) override; | 104 void error(const ResourceError&) override; |
| 104 void responseReceived(const ResourceResponse&, std::unique_ptr<WebDataConsum
erHandle>) override; | 105 void responseReceived(const ResourceResponse&, std::unique_ptr<WebDataConsum
erHandle>) override; |
| 105 void finish(double finishTime = 0.0) override; | 106 void finish(double finishTime = 0.0) override; |
| 106 | 107 |
| 107 // For compatibility, images keep loading even if there are HTTP errors. | 108 // For compatibility, images keep loading even if there are HTTP errors. |
| 108 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 109 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } |
| 109 | 110 |
| 110 bool isImage() const override { return true; } | 111 bool isImage() const override { return true; } |
| 111 | 112 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool m_hasDevicePixelRatioHeaderValue; | 172 bool m_hasDevicePixelRatioHeaderValue; |
| 172 HashCountedSet<ImageResourceObserver*> m_observers; | 173 HashCountedSet<ImageResourceObserver*> m_observers; |
| 173 HashCountedSet<ImageResourceObserver*> m_finishedObservers; | 174 HashCountedSet<ImageResourceObserver*> m_finishedObservers; |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 DEFINE_RESOURCE_TYPE_CASTS(Image); | 177 DEFINE_RESOURCE_TYPE_CASTS(Image); |
| 177 | 178 |
| 178 } // namespace blink | 179 } // namespace blink |
| 179 | 180 |
| 180 #endif | 181 #endif |
| OLD | NEW |