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

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

Issue 2483713002: Add referrerpolicy support to link prefetch (Closed)
Patch Set: -mReview nit & DCHECK Created 4 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&); 104 static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&);
105 105
106 DECLARE_TRACE(); 106 DECLARE_TRACE();
107 107
108 private: 108 private:
109 explicit LinkLoader(LinkLoaderClient*); 109 explicit LinkLoader(LinkLoaderClient*);
110 110
111 void linkLoadTimerFired(TimerBase*); 111 void linkLoadTimerFired(TimerBase*);
112 void linkLoadingErrorTimerFired(TimerBase*); 112 void linkLoadingErrorTimerFired(TimerBase*);
113 void createLinkPreloadResourceClient(Resource*); 113 void createLinkPreloadResourceClient(Resource*);
114 void prefetchIfNeeded(Document&,
115 const KURL& href,
116 const LinkRelAttribute&,
117 CrossOriginAttributeValue,
118 ReferrerPolicy);
114 119
115 Member<LinkLoaderClient> m_client; 120 Member<LinkLoaderClient> m_client;
116 121
117 Timer<LinkLoader> m_linkLoadTimer; 122 Timer<LinkLoader> m_linkLoadTimer;
118 Timer<LinkLoader> m_linkLoadingErrorTimer; 123 Timer<LinkLoader> m_linkLoadingErrorTimer;
119 124
120 Member<PrerenderHandle> m_prerender; 125 Member<PrerenderHandle> m_prerender;
121 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient; 126 Member<LinkPreloadResourceClient> m_linkPreloadResourceClient;
122 }; 127 };
123 128
124 } // namespace blink 129 } // namespace blink
125 130
126 #endif 131 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698