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

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

Issue 1667843003: Make Resource RefCountedWillBeGarbageCollectedFinalized, attempt #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + address review comments Created 4 years, 10 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&, CanLoadResources); 78 static bool loadLinkFromHeader(const String& headerValue, Document*, const N etworkHintsInterface&, CanLoadResources);
79 static Resource::Type getTypeFromAsAttribute(const String& as, Document*); 79 static Resource::Type getTypeFromAsAttribute(const String& as, Document*);
80 80
81 DECLARE_TRACE(); 81 DECLARE_TRACE();
82 82
83 private: 83 private:
84 explicit LinkLoader(LinkLoaderClient*); 84 explicit LinkLoader(LinkLoaderClient*);
85 85
86 void linkLoadTimerFired(Timer<LinkLoader>*); 86 void linkLoadTimerFired(Timer<LinkLoader>*);
87 void linkLoadingErrorTimerFired(Timer<LinkLoader>*); 87 void linkLoadingErrorTimerFired(Timer<LinkLoader>*);
88 void createLinkPreloadResourceClient(ResourcePtr<Resource>); 88 void createLinkPreloadResourceClient(Resource*);
89 89
90 RawPtrWillBeMember<LinkLoaderClient> m_client; 90 RawPtrWillBeMember<LinkLoaderClient> m_client;
91 91
92 Timer<LinkLoader> m_linkLoadTimer; 92 Timer<LinkLoader> m_linkLoadTimer;
93 Timer<LinkLoader> m_linkLoadingErrorTimer; 93 Timer<LinkLoader> m_linkLoadingErrorTimer;
94 94
95 OwnPtrWillBeMember<PrerenderHandle> m_prerender; 95 OwnPtrWillBeMember<PrerenderHandle> m_prerender;
96 OwnPtrWillBeMember<LinkPreloadResourceClient> m_linkPreloadResourceClient; 96 OwnPtrWillBeMember<LinkPreloadResourceClient> m_linkPreloadResourceClient;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif 101 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698