| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" | 5 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/html/HTMLLinkElement.h" | 9 #include "core/html/HTMLLinkElement.h" |
| 10 #include "core/loader/FrameLoaderClient.h" | 10 #include "core/loader/FrameLoaderClient.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 WTF_MAKE_NONCOPYABLE(RegistrationCallback); | 36 WTF_MAKE_NONCOPYABLE(RegistrationCallback); |
| 37 | 37 |
| 38 Persistent<LinkLoaderClient> m_client; | 38 Persistent<LinkLoaderClient> m_client; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } | 41 } |
| 42 | 42 |
| 43 RawPtr<ServiceWorkerLinkResource> ServiceWorkerLinkResource::create(HTMLLinkElem
ent* owner) | 43 ServiceWorkerLinkResource* ServiceWorkerLinkResource::create(HTMLLinkElement* ow
ner) |
| 44 { | 44 { |
| 45 return new ServiceWorkerLinkResource(owner); | 45 return new ServiceWorkerLinkResource(owner); |
| 46 } | 46 } |
| 47 | 47 |
| 48 ServiceWorkerLinkResource::~ServiceWorkerLinkResource() | 48 ServiceWorkerLinkResource::~ServiceWorkerLinkResource() |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 void ServiceWorkerLinkResource::process() | 52 void ServiceWorkerLinkResource::process() |
| 53 { | 53 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 83 { | 83 { |
| 84 process(); | 84 process(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 ServiceWorkerLinkResource::ServiceWorkerLinkResource(HTMLLinkElement* owner) | 87 ServiceWorkerLinkResource::ServiceWorkerLinkResource(HTMLLinkElement* owner) |
| 88 : LinkResource(owner) | 88 : LinkResource(owner) |
| 89 { | 89 { |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| OLD | NEW |