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

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

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: addressed comments Created 3 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) 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 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
5 rights reserved. 5 rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 HashSet<String> m_validatedURLs; 224 HashSet<String> m_validatedURLs;
225 mutable DocumentResourceMap m_documentResources; 225 mutable DocumentResourceMap m_documentResources;
226 226
227 Member<HeapListHashSet<Member<Resource>>> m_preloads; 227 Member<HeapListHashSet<Member<Resource>>> m_preloads;
228 Member<MHTMLArchive> m_archive; 228 Member<MHTMLArchive> m_archive;
229 229
230 TaskRunnerTimer<ResourceFetcher> m_resourceTimingReportTimer; 230 TaskRunnerTimer<ResourceFetcher> m_resourceTimingReportTimer;
231 231
232 using ResourceTimingInfoMap = 232 using ResourceTimingInfoMap =
233 HeapHashMap<Member<Resource>, std::unique_ptr<ResourceTimingInfo>>; 233 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>;
234 ResourceTimingInfoMap m_resourceTimingInfoMap; 234 ResourceTimingInfoMap m_resourceTimingInfoMap;
235 235
236 std::unique_ptr<ResourceTimingInfo> m_navigationTimingInfo; 236 RefPtr<ResourceTimingInfo> m_navigationTimingInfo;
237 237
238 Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports; 238 Vector<RefPtr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
239 239
240 HeapHashSet<Member<ResourceLoader>> m_loaders; 240 HeapHashSet<Member<ResourceLoader>> m_loaders;
241 HeapHashSet<Member<ResourceLoader>> m_nonBlockingLoaders; 241 HeapHashSet<Member<ResourceLoader>> m_nonBlockingLoaders;
242 242
243 // Used in hit rate histograms. 243 // Used in hit rate histograms.
244 class DeadResourceStatsRecorder { 244 class DeadResourceStatsRecorder {
245 DISALLOW_NEW(); 245 DISALLOW_NEW();
246 246
247 public: 247 public:
248 DeadResourceStatsRecorder(); 248 DeadResourceStatsRecorder();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 private: 286 private:
287 Member<ResourceFetcher> m_loader; 287 Member<ResourceFetcher> m_loader;
288 bool m_previousState; 288 bool m_previousState;
289 }; 289 };
290 290
291 } // namespace blink 291 } // namespace blink
292 292
293 #endif // ResourceFetcher_h 293 #endif // ResourceFetcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698