| 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 "wtf/Allocator.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
| 11 #include "wtf/RefPtr.h" | 11 #include "wtf/RefPtr.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class HTMLLinkElement; | 15 class HTMLLinkElement; |
| 16 | 16 |
| 17 class LinkManifest final : public LinkResource { | 17 class LinkManifest final : public LinkResource { |
| 18 USING_FAST_MALLOC_WILL_BE_REMOVED(LinkManifest); | |
| 19 public: | 18 public: |
| 20 | 19 |
| 21 static PassOwnPtrWillBeRawPtr<LinkManifest> create(HTMLLinkElement* owner); | 20 static RawPtr<LinkManifest> create(HTMLLinkElement* owner); |
| 22 | 21 |
| 23 ~LinkManifest() override; | 22 ~LinkManifest() override; |
| 24 | 23 |
| 25 // LinkResource | 24 // LinkResource |
| 26 void process() override; | 25 void process() override; |
| 27 LinkResourceType type() const override { return Manifest; } | 26 LinkResourceType type() const override { return Manifest; } |
| 28 bool hasLoaded() const override; | 27 bool hasLoaded() const override; |
| 29 void ownerRemoved() override; | 28 void ownerRemoved() override; |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 explicit LinkManifest(HTMLLinkElement* owner); | 31 explicit LinkManifest(HTMLLinkElement* owner); |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 } // namespace blink | 34 } // namespace blink |
| 36 | 35 |
| 37 #endif // LinkManifest_h | 36 #endif // LinkManifest_h |
| OLD | NEW |