| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class MockResourceClient : public GarbageCollectedFinalized<MockResourceClient>, | 41 class MockResourceClient : public GarbageCollectedFinalized<MockResourceClient>, |
| 42 public ResourceClient { | 42 public ResourceClient { |
| 43 USING_PRE_FINALIZER(MockResourceClient, dispose); | 43 USING_PRE_FINALIZER(MockResourceClient, dispose); |
| 44 USING_GARBAGE_COLLECTED_MIXIN(MockResourceClient); | 44 USING_GARBAGE_COLLECTED_MIXIN(MockResourceClient); |
| 45 | 45 |
| 46 public: | 46 public: |
| 47 MockResourceClient() {} | |
| 48 explicit MockResourceClient(Resource*); | 47 explicit MockResourceClient(Resource*); |
| 49 ~MockResourceClient() override; | 48 ~MockResourceClient() override; |
| 50 | 49 |
| 51 void notifyFinished(Resource*) override; | 50 void notifyFinished(Resource*) override; |
| 52 String debugName() const override { return "MockResourceClient"; } | 51 String debugName() const override { return "MockResourceClient"; } |
| 53 virtual bool notifyFinishedCalled() const { return m_notifyFinishedCalled; } | 52 virtual bool notifyFinishedCalled() const { return m_notifyFinishedCalled; } |
| 54 | 53 |
| 55 virtual void removeAsClient(); | 54 virtual void removeAsClient(); |
| 56 virtual void dispose(); | 55 virtual void dispose(); |
| 57 | 56 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 81 int imageChangedCount() const { return m_imageChangedCount; } | 80 int imageChangedCount() const { return m_imageChangedCount; } |
| 82 | 81 |
| 83 private: | 82 private: |
| 84 int m_imageChangedCount; | 83 int m_imageChangedCount; |
| 85 int m_imageNotifyFinishedCount; | 84 int m_imageNotifyFinishedCount; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace blink | 87 } // namespace blink |
| 89 | 88 |
| 90 #endif // MockResourceClients_h | 89 #endif // MockResourceClients_h |
| OLD | NEW |