Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: third_party/WebKit/Source/core/html/LinkManifest.cpp

Issue 2720633002: Move to core/frame/LocalFrameClient.h instead of core/loader/FrameLoaderClient.h (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/html/LinkStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698