| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; | 192 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 193 | 193 |
| 194 void clearLoader(); | 194 void clearLoader(); |
| 195 | 195 |
| 196 SharedBuffer* resourceBuffer() const { return m_data.get(); } | 196 SharedBuffer* resourceBuffer() const { return m_data.get(); } |
| 197 void setResourceBuffer(PassRefPtr<SharedBuffer>); | 197 void setResourceBuffer(PassRefPtr<SharedBuffer>); |
| 198 | 198 |
| 199 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); | 199 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); |
| 200 | 200 |
| 201 virtual void updateRequest(const ResourceRequest&) { } | |
| 202 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); | 201 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); |
| 203 void setResponse(const ResourceResponse& response) { m_response = response;
} | 202 void setResponse(const ResourceResponse& response) { m_response = response;
} |
| 204 const ResourceResponse& response() const { return m_response; } | 203 const ResourceResponse& response() const { return m_response; } |
| 205 | 204 |
| 206 virtual void reportResourceTimingToClients(const ResourceTimingInfo&) { } | 205 virtual void reportResourceTimingToClients(const ResourceTimingInfo&) { } |
| 207 | 206 |
| 208 // Sets the serialized metadata retrieved from the platform's cache. | 207 // Sets the serialized metadata retrieved from the platform's cache. |
| 209 virtual void setSerializedCachedMetadata(const char*, size_t); | 208 virtual void setSerializedCachedMetadata(const char*, size_t); |
| 210 | 209 |
| 211 // This may return nullptr when the resource isn't cacheable. | 210 // This may return nullptr when the resource isn't cacheable. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 void revalidationFailed(); | 373 void revalidationFailed(); |
| 375 | 374 |
| 376 bool unlock(); | 375 bool unlock(); |
| 377 | 376 |
| 378 bool hasRightHandleCountApartFromCache(unsigned targetCount) const; | 377 bool hasRightHandleCountApartFromCache(unsigned targetCount) const; |
| 379 | 378 |
| 380 void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CachedMetad
ataHandler::CacheType); | 379 void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CachedMetad
ataHandler::CacheType); |
| 381 void clearCachedMetadata(CachedMetadataHandler::CacheType); | 380 void clearCachedMetadata(CachedMetadataHandler::CacheType); |
| 382 CachedMetadata* cachedMetadata(unsigned dataTypeID) const; | 381 CachedMetadata* cachedMetadata(unsigned dataTypeID) const; |
| 383 | 382 |
| 384 String m_fragmentIdentifierForRequest; | |
| 385 | |
| 386 RefPtr<CachedMetadata> m_cachedMetadata; | 383 RefPtr<CachedMetadata> m_cachedMetadata; |
| 387 OwnPtrWillBeMember<CacheHandler> m_cacheHandler; | 384 OwnPtrWillBeMember<CacheHandler> m_cacheHandler; |
| 388 | 385 |
| 389 ResourceError m_error; | 386 ResourceError m_error; |
| 390 | 387 |
| 391 double m_loadFinishTime; | 388 double m_loadFinishTime; |
| 392 | 389 |
| 393 unsigned long m_identifier; | 390 unsigned long m_identifier; |
| 394 | 391 |
| 395 size_t m_encodedSize; | 392 size_t m_encodedSize; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 const char* ResourceTypeName(Resource::Type); | 436 const char* ResourceTypeName(Resource::Type); |
| 440 #endif | 437 #endif |
| 441 | 438 |
| 442 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 439 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 443 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 440 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
| 444 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 441 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
| 445 | 442 |
| 446 } | 443 } |
| 447 | 444 |
| 448 #endif | 445 #endif |
| OLD | NEW |