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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&) ; 167 void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&) ;
168 void moveResourceLoaderToNonBlocking(ResourceLoader*); 168 void moveResourceLoaderToNonBlocking(ResourceLoader*);
169 void removeResourceLoader(ResourceLoader*); 169 void removeResourceLoader(ResourceLoader*);
170 170
171 void initializeResourceRequest(ResourceRequest&, Resource::Type, FetchReques t::DeferOption); 171 void initializeResourceRequest(ResourceRequest&, Resource::Type, FetchReques t::DeferOption);
172 void willSendRequest(unsigned long identifier, ResourceRequest&, const Resou rceResponse&, const ResourceLoaderOptions&); 172 void willSendRequest(unsigned long identifier, ResourceRequest&, const Resou rceResponse&, const ResourceLoaderOptions&);
173 173
174 bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPolicy); 174 bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPolicy);
175 bool shouldDeferImageLoad(const KURL&) const; 175 bool shouldDeferImageLoad(const KURL&) const;
176 176
177 void resourceTimingReportTimerFired(Timer<ResourceFetcher>*); 177 void resourceTimingReportTimerFired(TimerBase*);
178 178
179 void reloadImagesIfNotDeferred(); 179 void reloadImagesIfNotDeferred();
180 180
181 void updateMemoryCacheStats(Resource*, RevalidationPolicy, const FetchReques t&, const ResourceFactory&, bool isStaticData) const; 181 void updateMemoryCacheStats(Resource*, RevalidationPolicy, const FetchReques t&, const ResourceFactory&, bool isStaticData) const;
182 182
183 Member<FetchContext> m_context; 183 Member<FetchContext> m_context;
184 184
185 HashSet<String> m_validatedURLs; 185 HashSet<String> m_validatedURLs;
186 mutable DocumentResourceMap m_documentResources; 186 mutable DocumentResourceMap m_documentResources;
187 187
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 m_loader->m_allowStaleResources = m_previousState; 240 m_loader->m_allowStaleResources = m_previousState;
241 } 241 }
242 private: 242 private:
243 Member<ResourceFetcher> m_loader; 243 Member<ResourceFetcher> m_loader;
244 bool m_previousState; 244 bool m_previousState;
245 }; 245 };
246 246
247 } // namespace blink 247 } // namespace blink
248 248
249 #endif // ResourceFetcher_h 249 #endif // ResourceFetcher_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698