| 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 | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool passesAccessControlCheck(SecurityOrigin*, | 201 bool passesAccessControlCheck(SecurityOrigin*, |
| 202 String& errorDescription) const; | 202 String& errorDescription) const; |
| 203 | 203 |
| 204 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; | 204 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 205 | 205 |
| 206 virtual PassRefPtr<const SharedBuffer> resourceBuffer() const { | 206 virtual PassRefPtr<const SharedBuffer> resourceBuffer() const { |
| 207 return m_data; | 207 return m_data; |
| 208 } | 208 } |
| 209 void setResourceBuffer(PassRefPtr<SharedBuffer>); | 209 void setResourceBuffer(PassRefPtr<SharedBuffer>); |
| 210 | 210 |
| 211 virtual void willFollowRedirect(ResourceRequest&, const ResourceResponse&); | 211 virtual bool willFollowRedirect(const ResourceRequest&, |
| 212 const ResourceResponse&); |
| 212 | 213 |
| 213 // Called when a redirect response was received but a decision has already | 214 // Called when a redirect response was received but a decision has already |
| 214 // been made to not follow it. | 215 // been made to not follow it. |
| 215 virtual void willNotFollowRedirect() {} | 216 virtual void willNotFollowRedirect() {} |
| 216 | 217 |
| 217 virtual void responseReceived(const ResourceResponse&, | 218 virtual void responseReceived(const ResourceResponse&, |
| 218 std::unique_ptr<WebDataConsumerHandle>); | 219 std::unique_ptr<WebDataConsumerHandle>); |
| 219 void setResponse(const ResourceResponse&); | 220 void setResponse(const ResourceResponse&); |
| 220 const ResourceResponse& response() const { return m_response; } | 221 const ResourceResponse& response() const { return m_response; } |
| 221 | 222 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 }; | 450 }; |
| 450 | 451 |
| 451 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 452 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 452 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 453 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 453 resource->getType() == Resource::typeName, \ | 454 resource->getType() == Resource::typeName, \ |
| 454 resource.getType() == Resource::typeName); | 455 resource.getType() == Resource::typeName); |
| 455 | 456 |
| 456 } // namespace blink | 457 } // namespace blink |
| 457 | 458 |
| 458 #endif | 459 #endif |
| OLD | NEW |