| 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 SVGResourceClient_h | 5 #ifndef SVGResourceClient_h |
| 6 #define SVGResourceClient_h | 6 #define SVGResourceClient_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/fetch/DocumentResource.h" | 9 #include "core/loader/resource/DocumentResource.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class TreeScope; | 14 class TreeScope; |
| 15 | 15 |
| 16 class CORE_EXPORT SVGResourceClient : public DocumentResourceClient { | 16 class CORE_EXPORT SVGResourceClient : public DocumentResourceClient { |
| 17 public: | 17 public: |
| 18 virtual ~SVGResourceClient() {} | 18 virtual ~SVGResourceClient() {} |
| 19 | 19 |
| 20 virtual TreeScope* treeScope() = 0; | 20 virtual TreeScope* treeScope() = 0; |
| 21 | 21 |
| 22 virtual void resourceContentChanged() = 0; | 22 virtual void resourceContentChanged() = 0; |
| 23 virtual void resourceElementChanged() = 0; | 23 virtual void resourceElementChanged() = 0; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 SVGResourceClient() {} | 26 SVGResourceClient() {} |
| 27 | 27 |
| 28 String debugName() const override { return "SVGResourceClient"; } | 28 String debugName() const override { return "SVGResourceClient"; } |
| 29 void notifyFinished(Resource*) override { resourceElementChanged(); } | 29 void notifyFinished(Resource*) override { resourceElementChanged(); } |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // SVGResourceClient_h | 34 #endif // SVGResourceClient_h |
| OLD | NEW |