OLD | NEW |
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 typedef WillBeHeapHashMap<RawPtrWillBeMember<Resource>, OwnPtr<ResourceTimin
gInfo>> ResourceTimingInfoMap; | 199 typedef WillBeHeapHashMap<RawPtrWillBeMember<Resource>, OwnPtr<ResourceTimin
gInfo>> ResourceTimingInfoMap; |
200 ResourceTimingInfoMap m_resourceTimingInfoMap; | 200 ResourceTimingInfoMap m_resourceTimingInfoMap; |
201 | 201 |
202 Vector<OwnPtr<ResourceTimingInfo>> m_scheduledResourceTimingReports; | 202 Vector<OwnPtr<ResourceTimingInfo>> m_scheduledResourceTimingReports; |
203 | 203 |
204 Member<ResourceLoaderSet> m_loaders; | 204 Member<ResourceLoaderSet> m_loaders; |
205 Member<ResourceLoaderSet> m_nonBlockingLoaders; | 205 Member<ResourceLoaderSet> m_nonBlockingLoaders; |
206 | 206 |
207 // Used in hit rate histograms. | 207 // Used in hit rate histograms. |
208 class DeadResourceStatsRecorder { | 208 class DeadResourceStatsRecorder { |
209 DISALLOW_ALLOCATION(); | 209 DISALLOW_NEW(); |
210 public: | 210 public: |
211 DeadResourceStatsRecorder(); | 211 DeadResourceStatsRecorder(); |
212 ~DeadResourceStatsRecorder(); | 212 ~DeadResourceStatsRecorder(); |
213 | 213 |
214 void update(RevalidationPolicy); | 214 void update(RevalidationPolicy); |
215 | 215 |
216 private: | 216 private: |
217 int m_useCount; | 217 int m_useCount; |
218 int m_revalidateCount; | 218 int m_revalidateCount; |
219 int m_loadCount; | 219 int m_loadCount; |
(...skipping 25 matching lines...) Expand all Loading... |
245 m_loader->m_allowStaleResources = m_previousState; | 245 m_loader->m_allowStaleResources = m_previousState; |
246 } | 246 } |
247 private: | 247 private: |
248 Member<ResourceFetcher> m_loader; | 248 Member<ResourceFetcher> m_loader; |
249 bool m_previousState; | 249 bool m_previousState; |
250 }; | 250 }; |
251 | 251 |
252 } // namespace blink | 252 } // namespace blink |
253 | 253 |
254 #endif // ResourceFetcher_h | 254 #endif // ResourceFetcher_h |
OLD | NEW |