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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 bool avoidBlockingOnLoad() { return m_avoidBlockingOnLoad; } | 118 bool avoidBlockingOnLoad() { return m_avoidBlockingOnLoad; } |
119 | 119 |
120 void setResourceError(const ResourceError& error) { m_error = error; } | 120 void setResourceError(const ResourceError& error) { m_error = error; } |
121 const ResourceError& resourceError() const { return m_error; } | 121 const ResourceError& resourceError() const { return m_error; } |
122 | 122 |
123 void setIdentifier(unsigned long identifier) { m_identifier = identifier; } | 123 void setIdentifier(unsigned long identifier) { m_identifier = identifier; } |
124 unsigned long identifier() const { return m_identifier; } | 124 unsigned long identifier() const { return m_identifier; } |
125 | 125 |
126 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; } | 126 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; } |
127 | 127 |
128 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } | |
129 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } | 128 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } |
130 const ResourceRequest& lastResourceRequest() const; | 129 const ResourceRequest& lastResourceRequest() const; |
131 | 130 |
132 void setRevalidatingRequest(const ResourceRequest& request) { m_revalidating
Request = request; } | 131 void setRevalidatingRequest(const ResourceRequest& request) { m_revalidating
Request = request; } |
133 | 132 |
134 const KURL& url() const { return m_resourceRequest.url();} | 133 const KURL& url() const { return m_resourceRequest.url();} |
135 Type type() const { return static_cast<Type>(m_type); } | 134 Type type() const { return static_cast<Type>(m_type); } |
136 const ResourceLoaderOptions& options() const { return m_options; } | 135 const ResourceLoaderOptions& options() const { return m_options; } |
137 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 136 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
138 | 137 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 const char* ResourceTypeName(Resource::Type); | 446 const char* ResourceTypeName(Resource::Type); |
448 #endif | 447 #endif |
449 | 448 |
450 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 449 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
451 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 450 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
452 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 451 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
453 | 452 |
454 } | 453 } |
455 | 454 |
456 #endif | 455 #endif |
OLD | NEW |