OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ServiceWorkerLinkResource_h |
| 6 #define ServiceWorkerLinkResource_h |
| 7 |
| 8 #include "core/html/LinkResource.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/PassOwnPtr.h" |
| 12 #include "wtf/RefPtr.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class HTMLLinkElement; |
| 17 |
| 18 class MODULES_EXPORT ServiceWorkerLinkResource final : public LinkResource { |
| 19 USING_FAST_MALLOC_WILL_BE_REMOVED(ServiceWorkerLinkResource); |
| 20 public: |
| 21 |
| 22 static PassOwnPtrWillBeRawPtr<ServiceWorkerLinkResource> create(HTMLLinkElem
ent* owner); |
| 23 |
| 24 ~ServiceWorkerLinkResource() override; |
| 25 |
| 26 // LinkResource implementation: |
| 27 void process() override; |
| 28 LinkResourceType type() const override { return Other; } |
| 29 bool hasLoaded() const override; |
| 30 void ownerRemoved() override; |
| 31 |
| 32 private: |
| 33 explicit ServiceWorkerLinkResource(HTMLLinkElement* owner); |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // ServiceWorkerLinkResource_h |
OLD | NEW |