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