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

Side by Side Diff: third_party/WebKit/Source/core/loader/LinkLoader.h

Issue 2797423003: Remove ResourceFetcher::preloads (Closed)
Patch Set: fix Created 3 years, 8 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/loader/LinkLoader.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 static void loadLinksFromHeader(const String& headerValue, 96 static void loadLinksFromHeader(const String& headerValue,
97 const KURL& baseURL, 97 const KURL& baseURL,
98 Document*, 98 Document*,
99 const NetworkHintsInterface&, 99 const NetworkHintsInterface&,
100 CanLoadResources, 100 CanLoadResources,
101 MediaPreloadPolicy, 101 MediaPreloadPolicy,
102 ViewportDescriptionWrapper*); 102 ViewportDescriptionWrapper*);
103 static WTF::Optional<Resource::Type> getResourceTypeFromAsAttribute( 103 static WTF::Optional<Resource::Type> getResourceTypeFromAsAttribute(
104 const String& as); 104 const String& as);
105 105
106 Resource* linkPreloadedResourceForTesting();
107
106 DECLARE_TRACE(); 108 DECLARE_TRACE();
107 109
108 private: 110 private:
109 LinkLoader(LinkLoaderClient*, RefPtr<WebTaskRunner>); 111 LinkLoader(LinkLoaderClient*, RefPtr<WebTaskRunner>);
110 112
111 void linkLoadTimerFired(TimerBase*); 113 void linkLoadTimerFired(TimerBase*);
112 void linkLoadingErrorTimerFired(TimerBase*); 114 void linkLoadingErrorTimerFired(TimerBase*);
113 void createLinkPreloadResourceClient(Resource*); 115 void createLinkPreloadResourceClient(Resource*);
114 116
115 Member<LinkLoaderClient> m_client; 117 Member<LinkLoaderClient> m_client;
116 118
117 TaskRunnerTimer<LinkLoader> m_linkLoadTimer; 119 TaskRunnerTimer<LinkLoader> m_linkLoadTimer;
118 TaskRunnerTimer<LinkLoader> m_linkLoadingErrorTimer; 120 TaskRunnerTimer<LinkLoader> m_linkLoadingErrorTimer;
119 121
120 Member<PrerenderHandle> m_prerender; 122 Member<PrerenderHandle> m_prerender;
121 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; 123 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient;
122 }; 124 };
123 125
124 } // namespace blink 126 } // namespace blink
125 127
126 #endif 128 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698