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

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

Issue 1186303002: Make ResourceTimingInfo non-refcounted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/fetch/FetchContext.cpp ('k') | Source/core/fetch/ResourceFetcher.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) 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 HashSet<String> m_validatedURLs; 178 HashSet<String> m_validatedURLs;
179 mutable DocumentResourceMap m_documentResources; 179 mutable DocumentResourceMap m_documentResources;
180 180
181 OwnPtr<ListHashSet<Resource*>> m_preloads; 181 OwnPtr<ListHashSet<Resource*>> m_preloads;
182 OwnPtrWillBeMember<ArchiveResourceCollection> m_archiveResourceCollection; 182 OwnPtrWillBeMember<ArchiveResourceCollection> m_archiveResourceCollection;
183 183
184 Timer<ResourceFetcher> m_garbageCollectDocumentResourcesTimer; 184 Timer<ResourceFetcher> m_garbageCollectDocumentResourcesTimer;
185 Timer<ResourceFetcher> m_resourceTimingReportTimer; 185 Timer<ResourceFetcher> m_resourceTimingReportTimer;
186 186
187 typedef HashMap<Resource*, RefPtr<ResourceTimingInfo>> ResourceTimingInfoMap ; 187 typedef HashMap<Resource*, OwnPtr<ResourceTimingInfo>> ResourceTimingInfoMap ;
188 ResourceTimingInfoMap m_resourceTimingInfoMap; 188 ResourceTimingInfoMap m_resourceTimingInfoMap;
189 189
190 HashMap<RefPtr<ResourceTimingInfo>, bool> m_scheduledResourceTimingReports; 190 Vector<OwnPtr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
191 191
192 OwnPtrWillBeMember<ResourceLoaderSet> m_loaders; 192 OwnPtrWillBeMember<ResourceLoaderSet> m_loaders;
193 OwnPtrWillBeMember<ResourceLoaderSet> m_nonBlockingLoaders; 193 OwnPtrWillBeMember<ResourceLoaderSet> m_nonBlockingLoaders;
194 194
195 // Used in hit rate histograms. 195 // Used in hit rate histograms.
196 class DeadResourceStatsRecorder { 196 class DeadResourceStatsRecorder {
197 public: 197 public:
198 DeadResourceStatsRecorder(); 198 DeadResourceStatsRecorder();
199 ~DeadResourceStatsRecorder(); 199 ~DeadResourceStatsRecorder();
200 200
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 m_loader->m_allowStaleResources = m_previousState; 232 m_loader->m_allowStaleResources = m_previousState;
233 } 233 }
234 private: 234 private:
235 RawPtrWillBeMember<ResourceFetcher> m_loader; 235 RawPtrWillBeMember<ResourceFetcher> m_loader;
236 bool m_previousState; 236 bool m_previousState;
237 }; 237 };
238 238
239 } // namespace blink 239 } // namespace blink
240 240
241 #endif // ResourceFetcher_h 241 #endif // ResourceFetcher_h
OLDNEW
« no previous file with comments | « Source/core/fetch/FetchContext.cpp ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698