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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.h

Issue 2648023002: Use TaskRunnerTimer in LinkLoader (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 17 matching lines...) Expand all
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "core/dom/DOMTokenList.h" 29 #include "core/dom/DOMTokenList.h"
30 #include "core/dom/IncrementLoadEventDelayCount.h" 30 #include "core/dom/IncrementLoadEventDelayCount.h"
31 #include "core/html/HTMLElement.h" 31 #include "core/html/HTMLElement.h"
32 #include "core/html/LinkRelAttribute.h" 32 #include "core/html/LinkRelAttribute.h"
33 #include "core/html/LinkResource.h" 33 #include "core/html/LinkResource.h"
34 #include "core/html/LinkStyle.h" 34 #include "core/html/LinkStyle.h"
35 #include "core/html/RelList.h" 35 #include "core/html/RelList.h"
36 #include "core/loader/LinkLoader.h" 36 #include "core/loader/LinkLoader.h"
37 #include "core/loader/LinkLoaderClient.h" 37 #include "core/loader/LinkLoaderClient.h"
38 #include "platform/WebTaskRunner.h"
38 #include <memory> 39 #include <memory>
39 40
40 namespace blink { 41 namespace blink {
41 42
42 class KURL; 43 class KURL;
43 class LinkImport; 44 class LinkImport;
44 45
45 class CORE_EXPORT HTMLLinkElement final : public HTMLElement, 46 class CORE_EXPORT HTMLLinkElement final : public HTMLElement,
46 public LinkLoaderClient, 47 public LinkLoaderClient,
47 private DOMTokenListObserver { 48 private DOMTokenListObserver {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void startLoadingDynamicSheet() override; 134 void startLoadingDynamicSheet() override;
134 void finishParsingChildren() override; 135 void finishParsingChildren() override;
135 136
136 // From LinkLoaderClient 137 // From LinkLoaderClient
137 void linkLoaded() override; 138 void linkLoaded() override;
138 void linkLoadingErrored() override; 139 void linkLoadingErrored() override;
139 void didStartLinkPrerender() override; 140 void didStartLinkPrerender() override;
140 void didStopLinkPrerender() override; 141 void didStopLinkPrerender() override;
141 void didSendLoadForLinkPrerender() override; 142 void didSendLoadForLinkPrerender() override;
142 void didSendDOMContentLoadedForLinkPrerender() override; 143 void didSendDOMContentLoadedForLinkPrerender() override;
144 RefPtr<WebTaskRunner> getLoadingTaskRunner() override;
143 145
144 // From DOMTokenListObserver 146 // From DOMTokenListObserver
145 void valueWasSet() final; 147 void valueWasSet() final;
146 148
147 Member<LinkResource> m_link; 149 Member<LinkResource> m_link;
148 Member<LinkLoader> m_linkLoader; 150 Member<LinkLoader> m_linkLoader;
149 151
150 String m_type; 152 String m_type;
151 String m_as; 153 String m_as;
152 String m_media; 154 String m_media;
153 ReferrerPolicy m_referrerPolicy; 155 ReferrerPolicy m_referrerPolicy;
154 Member<DOMTokenList> m_sizes; 156 Member<DOMTokenList> m_sizes;
155 Vector<IntSize> m_iconSizes; 157 Vector<IntSize> m_iconSizes;
156 TraceWrapperMember<RelList> m_relList; 158 TraceWrapperMember<RelList> m_relList;
157 LinkRelAttribute m_relAttribute; 159 LinkRelAttribute m_relAttribute;
158 String m_scope; 160 String m_scope;
159 161
160 bool m_createdByParser; 162 bool m_createdByParser;
161 }; 163 };
162 164
163 } // namespace blink 165 } // namespace blink
164 166
165 #endif // HTMLLinkElement_h 167 #endif // HTMLLinkElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698