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