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

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

Issue 1060863003: Add initial link preload support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix uninit member :/ Created 5 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 | « Source/core/html/LinkRelAttribute.cpp ('k') | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // from ResourceClient 56 // from ResourceClient
57 virtual void notifyFinished(Resource*) override; 57 virtual void notifyFinished(Resource*) override;
58 58
59 // from PrerenderClient 59 // from PrerenderClient
60 virtual void didStartPrerender() override; 60 virtual void didStartPrerender() override;
61 virtual void didStopPrerender() override; 61 virtual void didStopPrerender() override;
62 virtual void didSendLoadForPrerender() override; 62 virtual void didSendLoadForPrerender() override;
63 virtual void didSendDOMContentLoadedForPrerender() override; 63 virtual void didSendDOMContentLoadedForPrerender() override;
64 64
65 void released(); 65 void released();
66 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const KURL&, Document&); 66 bool loadLink(const LinkRelAttribute&, const AtomicString& crossOriginMode, const String& type, const String& as, const KURL&, Document&);
67 static bool loadLinkFromHeader(const String& headerValue, Document*); 67 static bool loadLinkFromHeader(const String& headerValue, Document*);
68 68
69 DECLARE_TRACE(); 69 DECLARE_TRACE();
70 70
71 private: 71 private:
72 void linkLoadTimerFired(Timer<LinkLoader>*); 72 void linkLoadTimerFired(Timer<LinkLoader>*);
73 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); 73 void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
74 void preloadIfNeeded(const LinkRelAttribute&, const KURL& href, Document&, c onst String& as);
74 75
75 LinkLoaderClient* m_client; 76 LinkLoaderClient* m_client;
76 77
77 Timer<LinkLoader> m_linkLoadTimer; 78 Timer<LinkLoader> m_linkLoadTimer;
78 Timer<LinkLoader> m_linkLoadingErrorTimer; 79 Timer<LinkLoader> m_linkLoadingErrorTimer;
79 80
80 OwnPtrWillBeMember<PrerenderHandle> m_prerender; 81 OwnPtrWillBeMember<PrerenderHandle> m_prerender;
81 }; 82 };
82 83
83 } 84 }
84 85
85 #endif 86 #endif
OLDNEW
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698