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

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

Issue 2873073003: [WIP] Keep matched preloads for a while
Patch Set: fix Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/platform/loader/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 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 const FetchParameters&, 236 const FetchParameters&,
237 const ResourceFactory&, 237 const ResourceFactory&,
238 bool is_static_data) const; 238 bool is_static_data) const;
239 239
240 Member<FetchContext> context_; 240 Member<FetchContext> context_;
241 241
242 HashSet<String> validated_urls_; 242 HashSet<String> validated_urls_;
243 mutable DocumentResourceMap document_resources_; 243 mutable DocumentResourceMap document_resources_;
244 244
245 HeapHashMap<PreloadKey, Member<Resource>> preloads_; 245 HeapHashMap<PreloadKey, Member<Resource>> preloads_;
246 HeapVector<Member<Resource>> matched_preloads_;
246 Member<MHTMLArchive> archive_; 247 Member<MHTMLArchive> archive_;
247 248
248 TaskRunnerTimer<ResourceFetcher> resource_timing_report_timer_; 249 TaskRunnerTimer<ResourceFetcher> resource_timing_report_timer_;
249 250
250 using ResourceTimingInfoMap = 251 using ResourceTimingInfoMap =
251 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>; 252 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>;
252 ResourceTimingInfoMap resource_timing_info_map_; 253 ResourceTimingInfoMap resource_timing_info_map_;
253 254
254 RefPtr<ResourceTimingInfo> navigation_timing_info_; 255 RefPtr<ResourceTimingInfo> navigation_timing_info_;
255 256
(...skipping 29 matching lines...) Expand all
285 } 286 }
286 287
287 private: 288 private:
288 Member<ResourceFetcher> loader_; 289 Member<ResourceFetcher> loader_;
289 bool previous_state_; 290 bool previous_state_;
290 }; 291 };
291 292
292 } // namespace blink 293 } // namespace blink
293 294
294 #endif // ResourceFetcher_h 295 #endif // ResourceFetcher_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698