| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 DontMarkAsReferenced, | 100 DontMarkAsReferenced, |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 virtual ~Resource(); | 103 virtual ~Resource(); |
| 104 | 104 |
| 105 DECLARE_VIRTUAL_TRACE(); | 105 DECLARE_VIRTUAL_TRACE(); |
| 106 | 106 |
| 107 virtual void setEncoding(const String&) {} | 107 virtual void setEncoding(const String&) {} |
| 108 virtual String encoding() const { return String(); } | 108 virtual String encoding() const { return String(); } |
| 109 virtual void appendData(const char*, size_t); | 109 virtual void appendData(const char*, size_t); |
| 110 virtual void error(const ResourceError&); | 110 virtual void error(const ResourceError&, Status errorStatus); |
| 111 virtual void setCORSFailed() {} | 111 virtual void setCORSFailed() {} |
| 112 | 112 |
| 113 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { | 113 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { |
| 114 m_needsSynchronousCacheHit = needsSynchronousCacheHit; | 114 m_needsSynchronousCacheHit = needsSynchronousCacheHit; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } | 117 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
| 118 bool isLinkPreload() const { return m_linkPreload; } | 118 bool isLinkPreload() const { return m_linkPreload; } |
| 119 | 119 |
| 120 void setPreloadDiscoveryTime(double preloadDiscoveryTime) { | 120 void setPreloadDiscoveryTime(double preloadDiscoveryTime) { |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 }; | 494 }; |
| 495 | 495 |
| 496 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 496 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 497 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 497 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 498 resource->getType() == Resource::typeName, \ | 498 resource->getType() == Resource::typeName, \ |
| 499 resource.getType() == Resource::typeName); | 499 resource.getType() == Resource::typeName); |
| 500 | 500 |
| 501 } // namespace blink | 501 } // namespace blink |
| 502 | 502 |
| 503 #endif | 503 #endif |
| OLD | NEW |