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

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

Issue 2296923002: Delete ResourceLoaderSet (Closed)
Patch Set: Created 4 years, 3 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 15 matching lines...) Expand all
26 #ifndef ResourceFetcher_h 26 #ifndef ResourceFetcher_h
27 #define ResourceFetcher_h 27 #define ResourceFetcher_h
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/fetch/CachePolicy.h" 30 #include "core/fetch/CachePolicy.h"
31 #include "core/fetch/FetchContext.h" 31 #include "core/fetch/FetchContext.h"
32 #include "core/fetch/FetchInitiatorInfo.h" 32 #include "core/fetch/FetchInitiatorInfo.h"
33 #include "core/fetch/FetchRequest.h" 33 #include "core/fetch/FetchRequest.h"
34 #include "core/fetch/Resource.h" 34 #include "core/fetch/Resource.h"
35 #include "core/fetch/ResourceLoaderOptions.h" 35 #include "core/fetch/ResourceLoaderOptions.h"
36 #include "core/fetch/ResourceLoaderSet.h"
37 #include "core/fetch/SubstituteData.h" 36 #include "core/fetch/SubstituteData.h"
38 #include "platform/Timer.h" 37 #include "platform/Timer.h"
39 #include "platform/network/ResourceError.h" 38 #include "platform/network/ResourceError.h"
40 #include "platform/network/ResourceLoadPriority.h" 39 #include "platform/network/ResourceLoadPriority.h"
41 #include "wtf/HashMap.h" 40 #include "wtf/HashMap.h"
42 #include "wtf/HashSet.h" 41 #include "wtf/HashSet.h"
43 #include "wtf/ListHashSet.h" 42 #include "wtf/ListHashSet.h"
44 #include "wtf/text/StringHash.h" 43 #include "wtf/text/StringHash.h"
45 #include <memory> 44 #include <memory>
46 45
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 Member<HeapListHashSet<Member<Resource>>> m_preloads; 182 Member<HeapListHashSet<Member<Resource>>> m_preloads;
184 Member<MHTMLArchive> m_archive; 183 Member<MHTMLArchive> m_archive;
185 184
186 Timer<ResourceFetcher> m_resourceTimingReportTimer; 185 Timer<ResourceFetcher> m_resourceTimingReportTimer;
187 186
188 using ResourceTimingInfoMap = HeapHashMap<Member<Resource>, std::unique_ptr< ResourceTimingInfo>>; 187 using ResourceTimingInfoMap = HeapHashMap<Member<Resource>, std::unique_ptr< ResourceTimingInfo>>;
189 ResourceTimingInfoMap m_resourceTimingInfoMap; 188 ResourceTimingInfoMap m_resourceTimingInfoMap;
190 189
191 Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports ; 190 Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports ;
192 191
193 ResourceLoaderSet m_loaders; 192 HeapHashSet<Member<ResourceLoader>> m_loaders;
194 ResourceLoaderSet m_nonBlockingLoaders; 193 HeapHashSet<Member<ResourceLoader>> m_nonBlockingLoaders;
195 194
196 // Used in hit rate histograms. 195 // Used in hit rate histograms.
197 class DeadResourceStatsRecorder { 196 class DeadResourceStatsRecorder {
198 DISALLOW_NEW(); 197 DISALLOW_NEW();
199 public: 198 public:
200 DeadResourceStatsRecorder(); 199 DeadResourceStatsRecorder();
201 ~DeadResourceStatsRecorder(); 200 ~DeadResourceStatsRecorder();
202 201
203 void update(RevalidationPolicy); 202 void update(RevalidationPolicy);
204 203
(...skipping 30 matching lines...) Expand all
235 m_loader->m_allowStaleResources = m_previousState; 234 m_loader->m_allowStaleResources = m_previousState;
236 } 235 }
237 private: 236 private:
238 Member<ResourceFetcher> m_loader; 237 Member<ResourceFetcher> m_loader;
239 bool m_previousState; 238 bool m_previousState;
240 }; 239 };
241 240
242 } // namespace blink 241 } // namespace blink
243 242
244 #endif // ResourceFetcher_h 243 #endif // ResourceFetcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698