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

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: moved layout test to external/wpt directory Created 3 years, 9 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 HashSet<String> m_validatedURLs; 223 HashSet<String> m_validatedURLs;
224 mutable DocumentResourceMap m_documentResources; 224 mutable DocumentResourceMap m_documentResources;
225 225
226 Member<HeapListHashSet<Member<Resource>>> m_preloads; 226 Member<HeapListHashSet<Member<Resource>>> m_preloads;
227 Member<MHTMLArchive> m_archive; 227 Member<MHTMLArchive> m_archive;
228 228
229 TaskRunnerTimer<ResourceFetcher> m_resourceTimingReportTimer; 229 TaskRunnerTimer<ResourceFetcher> m_resourceTimingReportTimer;
230 230
231 using ResourceTimingInfoMap = 231 using ResourceTimingInfoMap =
232 HeapHashMap<Member<Resource>, std::unique_ptr<ResourceTimingInfo>>; 232 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>;
233 ResourceTimingInfoMap m_resourceTimingInfoMap; 233 ResourceTimingInfoMap m_resourceTimingInfoMap;
234 234
235 std::unique_ptr<ResourceTimingInfo> m_navigationTimingInfo; 235 RefPtr<ResourceTimingInfo> m_navigationTimingInfo;
236 236
237 Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports; 237 Vector<RefPtr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
238 238
239 HeapHashSet<Member<ResourceLoader>> m_loaders; 239 HeapHashSet<Member<ResourceLoader>> m_loaders;
240 HeapHashSet<Member<ResourceLoader>> m_nonBlockingLoaders; 240 HeapHashSet<Member<ResourceLoader>> m_nonBlockingLoaders;
241 241
242 // Used in hit rate histograms. 242 // Used in hit rate histograms.
243 class DeadResourceStatsRecorder { 243 class DeadResourceStatsRecorder {
244 DISALLOW_NEW(); 244 DISALLOW_NEW();
245 245
246 public: 246 public:
247 DeadResourceStatsRecorder(); 247 DeadResourceStatsRecorder();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 private: 285 private:
286 Member<ResourceFetcher> m_loader; 286 Member<ResourceFetcher> m_loader;
287 bool m_previousState; 287 bool m_previousState;
288 }; 288 };
289 289
290 } // namespace blink 290 } // namespace blink
291 291
292 #endif // ResourceFetcher_h 292 #endif // ResourceFetcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698