| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 kReloadAlways, | 99 kReloadAlways, |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 virtual ~Resource(); | 102 virtual ~Resource(); |
| 103 | 103 |
| 104 DECLARE_VIRTUAL_TRACE(); | 104 DECLARE_VIRTUAL_TRACE(); |
| 105 | 105 |
| 106 virtual void SetEncoding(const String&) {} | 106 virtual void SetEncoding(const String&) {} |
| 107 virtual String Encoding() const { return String(); } | 107 virtual String Encoding() const { return String(); } |
| 108 virtual void AppendData(const char*, size_t); | 108 virtual void AppendData(const char*, size_t); |
| 109 virtual void GetError(const ResourceError&); | 109 virtual void FinishAsError(const ResourceError&); |
| 110 virtual void SetCORSFailed() {} | 110 virtual void SetCORSFailed() {} |
| 111 | 111 |
| 112 void SetNeedsSynchronousCacheHit(bool needs_synchronous_cache_hit) { | 112 void SetNeedsSynchronousCacheHit(bool needs_synchronous_cache_hit) { |
| 113 needs_synchronous_cache_hit_ = needs_synchronous_cache_hit; | 113 needs_synchronous_cache_hit_ = needs_synchronous_cache_hit; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void SetLinkPreload(bool is_link_preload) { link_preload_ = is_link_preload; } | 116 void SetLinkPreload(bool is_link_preload) { link_preload_ = is_link_preload; } |
| 117 bool IsLinkPreload() const { return link_preload_; } | 117 bool IsLinkPreload() const { return link_preload_; } |
| 118 | 118 |
| 119 void SetPreloadDiscoveryTime(double preload_discovery_time) { | 119 void SetPreloadDiscoveryTime(double preload_discovery_time) { |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 }; | 499 }; |
| 500 | 500 |
| 501 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 501 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 502 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 502 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 503 resource->GetType() == Resource::k##typeName, \ | 503 resource->GetType() == Resource::k##typeName, \ |
| 504 resource.GetType() == Resource::k##typeName); | 504 resource.GetType() == Resource::k##typeName); |
| 505 | 505 |
| 506 } // namespace blink | 506 } // namespace blink |
| 507 | 507 |
| 508 #endif | 508 #endif |
| OLD | NEW |