| 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) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 7 rights reserved. | 7 rights reserved. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 Platform::Current()->CacheMetadataInCacheStorage( | 242 Platform::Current()->CacheMetadataInCacheStorage( |
| 243 GetResponse().Url(), GetResponse().ResponseTime(), nullptr, 0, | 243 GetResponse().Url(), GetResponse().ResponseTime(), nullptr, 0, |
| 244 WebSecurityOrigin(security_origin_), | 244 WebSecurityOrigin(security_origin_), |
| 245 GetResponse().CacheStorageCacheName()); | 245 GetResponse().CacheStorageCacheName()); |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 | 248 |
| 249 Resource::Resource(const ResourceRequest& request, | 249 Resource::Resource(const ResourceRequest& request, |
| 250 Type type, | 250 Type type, |
| 251 const ResourceLoaderOptions& options) | 251 const ResourceLoaderOptions& options) |
| 252 : load_finish_time_(0), | 252 : preload_result_(kPreloadNotReferenced), |
| 253 identifier_(0), | |
| 254 encoded_size_(0), | |
| 255 encoded_size_memory_usage_(0), | |
| 256 decoded_size_(0), | |
| 257 overhead_size_(CalculateOverheadSize()), | |
| 258 preload_count_(0), | |
| 259 preload_discovery_time_(0.0), | |
| 260 cache_identifier_(MemoryCache::DefaultCacheIdentifier()), | |
| 261 preload_result_(kPreloadNotReferenced), | |
| 262 type_(type), | 253 type_(type), |
| 263 status_(ResourceStatus::kNotStarted), | 254 status_(ResourceStatus::kNotStarted), |
| 264 needs_synchronous_cache_hit_(false), | 255 needs_synchronous_cache_hit_(false), |
| 265 link_preload_(false), | 256 link_preload_(false), |
| 266 is_revalidating_(false), | 257 is_revalidating_(false), |
| 267 is_alive_(false), | 258 is_alive_(false), |
| 268 is_add_remove_client_prohibited_(false), | 259 is_add_remove_client_prohibited_(false), |
| 269 integrity_disposition_(ResourceIntegrityDisposition::kNotChecked), | 260 integrity_disposition_(ResourceIntegrityDisposition::kNotChecked), |
| 261 load_finish_time_(0), |
| 262 identifier_(0), |
| 263 preload_count_(0), |
| 264 preload_discovery_time_(0.0), |
| 265 encoded_size_(0), |
| 266 encoded_size_memory_usage_(0), |
| 267 decoded_size_(0), |
| 268 overhead_size_(CalculateOverheadSize()), |
| 269 cache_identifier_(MemoryCache::DefaultCacheIdentifier()), |
| 270 options_(options), | 270 options_(options), |
| 271 response_timestamp_(CurrentTime()), | 271 response_timestamp_(CurrentTime()), |
| 272 cancel_timer_( | 272 cancel_timer_( |
| 273 // We use MainThread() for main-thread cases to avoid syscall cost | 273 // We use MainThread() for main-thread cases to avoid syscall cost |
| 274 // when checking main_thread_->isCurrentThread() in currentThread(). | 274 // when checking main_thread_->isCurrentThread() in currentThread(). |
| 275 IsMainThread() ? Platform::Current() | 275 IsMainThread() ? Platform::Current() |
| 276 ->MainThread() | 276 ->MainThread() |
| 277 ->Scheduler() | 277 ->Scheduler() |
| 278 ->LoadingTaskRunner() | 278 ->LoadingTaskRunner() |
| 279 : Platform::Current() | 279 : Platform::Current() |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 case Resource::kMedia: | 1084 case Resource::kMedia: |
| 1085 case Resource::kManifest: | 1085 case Resource::kManifest: |
| 1086 case Resource::kMock: | 1086 case Resource::kMock: |
| 1087 return false; | 1087 return false; |
| 1088 } | 1088 } |
| 1089 NOTREACHED(); | 1089 NOTREACHED(); |
| 1090 return false; | 1090 return false; |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 } // namespace blink | 1093 } // namespace blink |
| OLD | NEW |