| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MockImageResourceClient_h | 5 #ifndef MockImageResourceClient_h |
| 6 #define MockImageResourceClient_h | 6 #define MockImageResourceClient_h |
| 7 | 7 |
| 8 #include "core/fetch/MockResourceClient.h" | |
| 9 #include "core/loader/resource/ImageResource.h" | 8 #include "core/loader/resource/ImageResource.h" |
| 10 #include "core/loader/resource/ImageResourceContent.h" | 9 #include "core/loader/resource/ImageResourceContent.h" |
| 11 #include "core/loader/resource/ImageResourceObserver.h" | 10 #include "core/loader/resource/ImageResourceObserver.h" |
| 11 #include "platform/loader/fetch/MockResourceClient.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class MockImageResourceClient final : public MockResourceClient, | 15 class MockImageResourceClient final : public MockResourceClient, |
| 16 public ImageResourceObserver { | 16 public ImageResourceObserver { |
| 17 public: | 17 public: |
| 18 explicit MockImageResourceClient(ImageResource*); | 18 explicit MockImageResourceClient(ImageResource*); |
| 19 ~MockImageResourceClient() override; | 19 ~MockImageResourceClient() override; |
| 20 | 20 |
| 21 void imageNotifyFinished(ImageResourceContent*) override; | 21 void imageNotifyFinished(ImageResourceContent*) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 private: | 41 private: |
| 42 int m_imageChangedCount; | 42 int m_imageChangedCount; |
| 43 size_t m_encodedSizeOnLastImageChanged; | 43 size_t m_encodedSizeOnLastImageChanged; |
| 44 int m_imageNotifyFinishedCount; | 44 int m_imageNotifyFinishedCount; |
| 45 size_t m_encodedSizeOnImageNotifyFinished; | 45 size_t m_encodedSizeOnImageNotifyFinished; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // MockImageResourceClient_h | 50 #endif // MockImageResourceClient_h |
| OLD | NEW |