| 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) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 virtual void DidSendData(unsigned long long /* bytesSent */, | 295 virtual void DidSendData(unsigned long long /* bytesSent */, |
| 296 unsigned long long /* totalBytesToBeSent */) {} | 296 unsigned long long /* totalBytesToBeSent */) {} |
| 297 virtual void DidDownloadData(int) {} | 297 virtual void DidDownloadData(int) {} |
| 298 | 298 |
| 299 double LoadFinishTime() const { return load_finish_time_; } | 299 double LoadFinishTime() const { return load_finish_time_; } |
| 300 | 300 |
| 301 void SetEncodedDataLength(int64_t value) { | 301 void SetEncodedDataLength(int64_t value) { |
| 302 response_.SetEncodedDataLength(value); | 302 response_.SetEncodedDataLength(value); |
| 303 } | 303 } |
| 304 void AddToEncodedBodyLength(int value) { | 304 void SetEncodedBodyLength(int value) { |
| 305 response_.AddToEncodedBodyLength(value); | 305 response_.SetEncodedBodyLength(value); |
| 306 } | 306 } |
| 307 void AddToDecodedBodyLength(int value) { | 307 void SetDecodedBodyLength(int value) { |
| 308 response_.AddToDecodedBodyLength(value); | 308 response_.SetDecodedBodyLength(value); |
| 309 } | 309 } |
| 310 | 310 |
| 311 virtual bool CanReuse(const FetchParameters&) const { return true; } | 311 virtual bool CanReuse(const FetchParameters&) const { return true; } |
| 312 | 312 |
| 313 // If cache-aware loading is activated, this callback is called when the first | 313 // If cache-aware loading is activated, this callback is called when the first |
| 314 // disk-cache-only request failed due to cache miss. After this callback, | 314 // disk-cache-only request failed due to cache miss. After this callback, |
| 315 // cache-aware loading is deactivated and a reload with original request will | 315 // cache-aware loading is deactivated and a reload with original request will |
| 316 // be triggered right away in ResourceLoader. | 316 // be triggered right away in ResourceLoader. |
| 317 virtual void WillReloadAfterDiskCacheMiss() {} | 317 virtual void WillReloadAfterDiskCacheMiss() {} |
| 318 | 318 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 }; | 502 }; |
| 503 | 503 |
| 504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 506 resource->GetType() == Resource::k##typeName, \ | 506 resource->GetType() == Resource::k##typeName, \ |
| 507 resource.GetType() == Resource::k##typeName); | 507 resource.GetType() == Resource::k##typeName); |
| 508 | 508 |
| 509 } // namespace blink | 509 } // namespace blink |
| 510 | 510 |
| 511 #endif | 511 #endif |
| OLD | NEW |