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

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

Issue 2809103002: ur_ls -> urls in ResourceFetcher (Closed)
Patch Set: Created 3 years, 8 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void ReloadImagesIfNotDeferred(); 218 void ReloadImagesIfNotDeferred();
219 219
220 void UpdateMemoryCacheStats(Resource*, 220 void UpdateMemoryCacheStats(Resource*,
221 RevalidationPolicy, 221 RevalidationPolicy,
222 const FetchRequest&, 222 const FetchRequest&,
223 const ResourceFactory&, 223 const ResourceFactory&,
224 bool is_static_data) const; 224 bool is_static_data) const;
225 225
226 Member<FetchContext> context_; 226 Member<FetchContext> context_;
227 227
228 HashSet<String> validated_ur_ls_; 228 HashSet<String> validated_urls_;
229 mutable DocumentResourceMap document_resources_; 229 mutable DocumentResourceMap document_resources_;
230 230
231 Member<HeapListHashSet<Member<Resource>>> preloads_; 231 Member<HeapListHashSet<Member<Resource>>> preloads_;
232 Member<MHTMLArchive> archive_; 232 Member<MHTMLArchive> archive_;
233 233
234 TaskRunnerTimer<ResourceFetcher> resource_timing_report_timer_; 234 TaskRunnerTimer<ResourceFetcher> resource_timing_report_timer_;
235 235
236 using ResourceTimingInfoMap = 236 using ResourceTimingInfoMap =
237 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>; 237 HeapHashMap<Member<Resource>, RefPtr<ResourceTimingInfo>>;
238 ResourceTimingInfoMap resource_timing_info_map_; 238 ResourceTimingInfoMap resource_timing_info_map_;
(...skipping 15 matching lines...) Expand all
254 254
255 void Update(RevalidationPolicy); 255 void Update(RevalidationPolicy);
256 256
257 private: 257 private:
258 int use_count_; 258 int use_count_;
259 int revalidate_count_; 259 int revalidate_count_;
260 int load_count_; 260 int load_count_;
261 }; 261 };
262 DeadResourceStatsRecorder dead_stats_recorder_; 262 DeadResourceStatsRecorder dead_stats_recorder_;
263 263
264 std::unique_ptr<HashSet<String>> preloaded_ur_ls_for_test_; 264 std::unique_ptr<HashSet<String>> preloaded_urls_for_test_;
265 265
266 // 28 bits left 266 // 28 bits left
267 bool auto_load_images_ : 1; 267 bool auto_load_images_ : 1;
268 bool images_enabled_ : 1; 268 bool images_enabled_ : 1;
269 bool allow_stale_resources_ : 1; 269 bool allow_stale_resources_ : 1;
270 bool image_fetched_ : 1; 270 bool image_fetched_ : 1;
271 }; 271 };
272 272
273 class ResourceCacheValidationSuppressor { 273 class ResourceCacheValidationSuppressor {
274 WTF_MAKE_NONCOPYABLE(ResourceCacheValidationSuppressor); 274 WTF_MAKE_NONCOPYABLE(ResourceCacheValidationSuppressor);
(...skipping 13 matching lines...) Expand all
288 } 288 }
289 289
290 private: 290 private:
291 Member<ResourceFetcher> loader_; 291 Member<ResourceFetcher> loader_;
292 bool previous_state_; 292 bool previous_state_;
293 }; 293 };
294 294
295 } // namespace blink 295 } // namespace blink
296 296
297 #endif // ResourceFetcher_h 297 #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