| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // FIXME: Remove the stringless variant once all the callsites' error messag
es are updated. | 180 // FIXME: Remove the stringless variant once all the callsites' error messag
es are updated. |
| 181 bool passesAccessControlCheck(SecurityOrigin*); | 181 bool passesAccessControlCheck(SecurityOrigin*); |
| 182 bool passesAccessControlCheck(SecurityOrigin*, String& errorDescription); | 182 bool passesAccessControlCheck(SecurityOrigin*, String& errorDescription); |
| 183 | 183 |
| 184 void clearLoader(); | 184 void clearLoader(); |
| 185 | 185 |
| 186 SharedBuffer* resourceBuffer() const { return m_data.get(); } | 186 SharedBuffer* resourceBuffer() const { return m_data.get(); } |
| 187 void setResourceBuffer(PassRefPtr<SharedBuffer>); | 187 void setResourceBuffer(PassRefPtr<SharedBuffer>); |
| 188 | 188 |
| 189 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); | 189 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); |
| 190 | 190 |
| 191 virtual void updateRequest(const ResourceRequest&) { } | 191 virtual void updateRequest(const ResourceRequest&) { } |
| 192 virtual void responseReceived(const ResourceResponse&); | 192 virtual void responseReceived(const ResourceResponse&); |
| 193 void setResponse(const ResourceResponse& response) { m_response = response;
} | 193 void setResponse(const ResourceResponse& response) { m_response = response;
} |
| 194 const ResourceResponse& response() const { return m_response; } | 194 const ResourceResponse& response() const { return m_response; } |
| 195 | 195 |
| 196 // Sets the serialized metadata retrieved from the platform's cache. | 196 // Sets the serialized metadata retrieved from the platform's cache. |
| 197 void setSerializedCachedMetadata(const char*, size_t); | 197 void setSerializedCachedMetadata(const char*, size_t); |
| 198 | 198 |
| 199 // Caches the given metadata in association with this resource and suggests | 199 // Caches the given metadata in association with this resource and suggests |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 const char* ResourceTypeName(Resource::Type); | 415 const char* ResourceTypeName(Resource::Type); |
| 416 #endif | 416 #endif |
| 417 | 417 |
| 418 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 418 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 419 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 419 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
| 420 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 420 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
| 421 | 421 |
| 422 } | 422 } |
| 423 | 423 |
| 424 #endif | 424 #endif |
| OLD | NEW |