| 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 #include "core/html/LinkManifest.h" | 5 #include "core/html/LinkManifest.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/frame/LocalFrameClient.h" |
| 9 #include "core/html/HTMLLinkElement.h" | 10 #include "core/html/HTMLLinkElement.h" |
| 10 #include "core/loader/FrameLoaderClient.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 LinkManifest* LinkManifest::create(HTMLLinkElement* owner) { | 14 LinkManifest* LinkManifest::create(HTMLLinkElement* owner) { |
| 15 return new LinkManifest(owner); | 15 return new LinkManifest(owner); |
| 16 } | 16 } |
| 17 | 17 |
| 18 LinkManifest::LinkManifest(HTMLLinkElement* owner) : LinkResource(owner) {} | 18 LinkManifest::LinkManifest(HTMLLinkElement* owner) : LinkResource(owner) {} |
| 19 | 19 |
| 20 LinkManifest::~LinkManifest() {} | 20 LinkManifest::~LinkManifest() {} |
| 21 | 21 |
| 22 void LinkManifest::process() { | 22 void LinkManifest::process() { |
| 23 if (!m_owner || !m_owner->document().frame()) | 23 if (!m_owner || !m_owner->document().frame()) |
| 24 return; | 24 return; |
| 25 | 25 |
| 26 m_owner->document().frame()->loader().client()->dispatchDidChangeManifest(); | 26 m_owner->document().frame()->loader().client()->dispatchDidChangeManifest(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool LinkManifest::hasLoaded() const { | 29 bool LinkManifest::hasLoaded() const { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 void LinkManifest::ownerRemoved() { | 33 void LinkManifest::ownerRemoved() { |
| 34 process(); | 34 process(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| OLD | NEW |