| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 LinkManifest_h | 5 #ifndef LinkManifest_h |
| 6 #define LinkManifest_h | 6 #define LinkManifest_h |
| 7 | 7 |
| 8 #include "core/html/LinkResource.h" | 8 #include "core/html/LinkResource.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 #include "wtf/RefPtr.h" | 10 #include "platform/wtf/RefPtr.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class HTMLLinkElement; | 14 class HTMLLinkElement; |
| 15 | 15 |
| 16 class LinkManifest final : public LinkResource { | 16 class LinkManifest final : public LinkResource { |
| 17 public: | 17 public: |
| 18 static LinkManifest* Create(HTMLLinkElement* owner); | 18 static LinkManifest* Create(HTMLLinkElement* owner); |
| 19 | 19 |
| 20 ~LinkManifest() override; | 20 ~LinkManifest() override; |
| 21 | 21 |
| 22 // LinkResource | 22 // LinkResource |
| 23 void Process() override; | 23 void Process() override; |
| 24 LinkResourceType GetType() const override { return kManifest; } | 24 LinkResourceType GetType() const override { return kManifest; } |
| 25 bool HasLoaded() const override; | 25 bool HasLoaded() const override; |
| 26 void OwnerRemoved() override; | 26 void OwnerRemoved() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 explicit LinkManifest(HTMLLinkElement* owner); | 29 explicit LinkManifest(HTMLLinkElement* owner); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // LinkManifest_h | 34 #endif // LinkManifest_h |
| OLD | NEW |