| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Updates the expire date on the cache entry file | 165 // Updates the expire date on the cache entry file |
| 166 virtual void finish(double finishTime); | 166 virtual void finish(double finishTime); |
| 167 void finish() { finish(0.0); } | 167 void finish() { finish(0.0); } |
| 168 | 168 |
| 169 // FIXME: Remove the stringless variant once all the callsites' error messag
es are updated. | 169 // FIXME: Remove the stringless variant once all the callsites' error messag
es are updated. |
| 170 bool passesAccessControlCheck(SecurityOrigin*) const; | 170 bool passesAccessControlCheck(SecurityOrigin*) const; |
| 171 bool passesAccessControlCheck(SecurityOrigin*, String& errorDescription) con
st; | 171 bool passesAccessControlCheck(SecurityOrigin*, String& errorDescription) con
st; |
| 172 | 172 |
| 173 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; | 173 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 174 | 174 |
| 175 void clearLoader(); | |
| 176 | |
| 177 SharedBuffer* resourceBuffer() const { return m_data.get(); } | 175 SharedBuffer* resourceBuffer() const { return m_data.get(); } |
| 178 void setResourceBuffer(PassRefPtr<SharedBuffer>); | 176 void setResourceBuffer(PassRefPtr<SharedBuffer>); |
| 179 | 177 |
| 180 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); | 178 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); |
| 181 | 179 |
| 182 // Called when a redirect response was received but a decision has | 180 // Called when a redirect response was received but a decision has |
| 183 // already been made to not follow it. | 181 // already been made to not follow it. |
| 184 virtual void willNotFollowRedirect() {} | 182 virtual void willNotFollowRedirect() {} |
| 185 | 183 |
| 186 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); | 184 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon
sumerHandle>); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 361 |
| 364 Resource::Type m_type; | 362 Resource::Type m_type; |
| 365 }; | 363 }; |
| 366 | 364 |
| 367 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 365 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 368 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); | 366 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType(
) == Resource::typeName, resource.getType() == Resource::typeName); |
| 369 | 367 |
| 370 } // namespace blink | 368 } // namespace blink |
| 371 | 369 |
| 372 #endif | 370 #endif |
| OLD | NEW |