| 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
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 bool lock(); | 225 bool lock(); |
| 226 | 226 |
| 227 void setCacheIdentifier(const String& cacheIdentifier) { m_cacheIdentifier =
cacheIdentifier; } | 227 void setCacheIdentifier(const String& cacheIdentifier) { m_cacheIdentifier =
cacheIdentifier; } |
| 228 String cacheIdentifier() const { return m_cacheIdentifier; } | 228 String cacheIdentifier() const { return m_cacheIdentifier; } |
| 229 | 229 |
| 230 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } | 230 virtual void didSendData(unsigned long long /* bytesSent */, unsigned long l
ong /* totalBytesToBeSent */) { } |
| 231 virtual void didDownloadData(int) { } | 231 virtual void didDownloadData(int) { } |
| 232 | 232 |
| 233 double loadFinishTime() const { return m_loadFinishTime; } | 233 double loadFinishTime() const { return m_loadFinishTime; } |
| 234 | 234 |
| 235 void addToEncodedBodyLength(int value) { m_response.addToEncodedBodyLength(v
alue); } |
| 236 void addToDecodedBodyLength(int value) { m_response.addToDecodedBodyLength(v
alue); } |
| 237 |
| 235 virtual bool canReuse(const ResourceRequest&) const { return true; } | 238 virtual bool canReuse(const ResourceRequest&) const { return true; } |
| 236 | 239 |
| 237 // Used by the MemoryCache to reduce the memory consumption of the entry. | 240 // Used by the MemoryCache to reduce the memory consumption of the entry. |
| 238 void prune(); | 241 void prune(); |
| 239 | 242 |
| 240 virtual void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*)
const; | 243 virtual void onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*)
const; |
| 241 | 244 |
| 242 static const char* resourceTypeToString(Type, const FetchInitiatorInfo&); | 245 static const char* resourceTypeToString(Type, const FetchInitiatorInfo&); |
| 243 static const char* resourceTypeName(Type); | 246 static const char* resourceTypeName(Type); |
| 244 | 247 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 364 |
| 362 Resource::Type m_type; | 365 Resource::Type m_type; |
| 363 }; | 366 }; |
| 364 | 367 |
| 365 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 368 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 366 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); | 369 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); |
| 367 | 370 |
| 368 } // namespace blink | 371 } // namespace blink |
| 369 | 372 |
| 370 #endif | 373 #endif |
| OLD | NEW |