| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; | 173 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 174 | 174 |
| 175 void clearLoader(); | 175 void clearLoader(); |
| 176 | 176 |
| 177 SharedBuffer* resourceBuffer() const { return m_data.get(); } | 177 SharedBuffer* resourceBuffer() const { return m_data.get(); } |
| 178 void setResourceBuffer(PassRefPtr<SharedBuffer>); | 178 void setResourceBuffer(PassRefPtr<SharedBuffer>); |
| 179 | 179 |
| 180 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); | 180 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); |
| 181 | 181 |
| 182 // Called when a redirect response was received but a decision has |
| 183 // already been made to not follow it. |
| 184 virtual void willNotFollowRedirect() {} |
| 185 |
| 182 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); | 186 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); |
| 183 void setResponse(const ResourceResponse& response) { m_response = response;
} | 187 void setResponse(const ResourceResponse& response) { m_response = response;
} |
| 184 const ResourceResponse& response() const { return m_response; } | 188 const ResourceResponse& response() const { return m_response; } |
| 185 | 189 |
| 186 virtual void reportResourceTimingToClients(const ResourceTimingInfo&) { } | 190 virtual void reportResourceTimingToClients(const ResourceTimingInfo&) { } |
| 187 | 191 |
| 188 // Sets the serialized metadata retrieved from the platform's cache. | 192 // Sets the serialized metadata retrieved from the platform's cache. |
| 189 virtual void setSerializedCachedMetadata(const char*, size_t); | 193 virtual void setSerializedCachedMetadata(const char*, size_t); |
| 190 | 194 |
| 191 // This may return nullptr when the resource isn't cacheable. | 195 // This may return nullptr when the resource isn't cacheable. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 Resource::Type m_type; | 380 Resource::Type m_type; |
| 377 }; | 381 }; |
| 378 | 382 |
| 379 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 383 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 380 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); \ | 384 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); \ |
| 381 inline typeName##Resource* to##typeName##Resource(const RawPtr<Resource>& pt
r) { return to##typeName##Resource(ptr.get()); } | 385 inline typeName##Resource* to##typeName##Resource(const RawPtr<Resource>& pt
r) { return to##typeName##Resource(ptr.get()); } |
| 382 | 386 |
| 383 } // namespace blink | 387 } // namespace blink |
| 384 | 388 |
| 385 #endif | 389 #endif |
| OLD | NEW |