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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn
chronousCacheHit = needsSynchronousCacheHit; } | 104 void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSyn
chronousCacheHit = needsSynchronousCacheHit; } |
105 | 105 |
106 void setResourceError(const ResourceError& error) { m_error = error; } | 106 void setResourceError(const ResourceError& error) { m_error = error; } |
107 const ResourceError& resourceError() const { return m_error; } | 107 const ResourceError& resourceError() const { return m_error; } |
108 | 108 |
109 void setIdentifier(unsigned long identifier) { m_identifier = identifier; } | 109 void setIdentifier(unsigned long identifier) { m_identifier = identifier; } |
110 unsigned long identifier() const { return m_identifier; } | 110 unsigned long identifier() const { return m_identifier; } |
111 | 111 |
112 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; } | 112 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return false; } |
113 | 113 |
114 ResourceRequest& resourceRequest() { return m_resourceRequest; } | 114 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } |
115 const ResourceRequest& lastResourceRequest(); | 115 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } |
| 116 const ResourceRequest& lastResourceRequest() const; |
| 117 |
116 const KURL& url() const { return m_resourceRequest.url();} | 118 const KURL& url() const { return m_resourceRequest.url();} |
117 Type type() const { return static_cast<Type>(m_type); } | 119 Type type() const { return static_cast<Type>(m_type); } |
118 const ResourceLoaderOptions& options() const { return m_options; } | 120 const ResourceLoaderOptions& options() const { return m_options; } |
119 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 121 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
120 | 122 |
121 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); | 123 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); |
122 | 124 |
123 void addClient(ResourceClient*); | 125 void addClient(ResourceClient*); |
124 void removeClient(ResourceClient*); | 126 void removeClient(ResourceClient*); |
125 bool hasClients() const { return !m_clients.isEmpty() || !m_clientsAwaitingC
allback.isEmpty(); } | 127 bool hasClients() const { return !m_clients.isEmpty() || !m_clientsAwaitingC
allback.isEmpty(); } |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 const char* ResourceTypeName(Resource::Type); | 405 const char* ResourceTypeName(Resource::Type); |
404 #endif | 406 #endif |
405 | 407 |
406 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 408 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
407 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 409 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
408 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 410 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
409 | 411 |
410 } | 412 } |
411 | 413 |
412 #endif | 414 #endif |
OLD | NEW |