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

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

Issue 1416673008: Converge <link rel=preload> loading logic with preloadScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 1 month 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 /* 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void released(); 67 void released();
68 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&, const NetworkHints Interface&); 68 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&, const NetworkHints Interface&);
69 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&); 69 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&);
70 70
71 DECLARE_TRACE(); 71 DECLARE_TRACE();
72 72
73 private: 73 private:
74 void linkLoadTimerFired(Timer<LinkLoader>*); 74 void linkLoadTimerFired(Timer<LinkLoader>*);
75 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); 75 void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
76 void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, c onst String& as);
77 76
78 LinkLoaderClient* m_client; 77 LinkLoaderClient* m_client;
79 78
80 Timer<LinkLoader> m_linkLoadTimer; 79 Timer<LinkLoader> m_linkLoadTimer;
81 Timer<LinkLoader> m_linkLoadingErrorTimer; 80 Timer<LinkLoader> m_linkLoadingErrorTimer;
82 81
83 OwnPtrWillBeMember<PrerenderHandle> m_prerender; 82 OwnPtrWillBeMember<PrerenderHandle> m_prerender;
84 }; 83 };
85 84
86 } 85 }
87 86
88 #endif 87 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.h ('k') | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698