| 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 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 return new RawResource(request, type, ResourceLoaderOptions()); | 55 return new RawResource(request, type, ResourceLoaderOptions()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and | 58 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and |
| 59 // therefore shouldn't use RawResource. However, it is, and it needs to be | 59 // therefore shouldn't use RawResource. However, it is, and it needs to be |
| 60 // able to defer loading. This can be fixed by splitting CORS preflighting out | 60 // able to defer loading. This can be fixed by splitting CORS preflighting out |
| 61 // of DocumentThreadableLoader. | 61 // of DocumentThreadableLoader. |
| 62 void setDefersLoading(bool); | 62 void setDefersLoading(bool); |
| 63 | 63 |
| 64 // Resource implementation | 64 // Resource implementation |
| 65 bool canReuse(const ResourceRequest&) const override; | 65 bool canReuse(const FetchRequest&) const override; |
| 66 bool willFollowRedirect(const ResourceRequest&, | 66 bool willFollowRedirect(const ResourceRequest&, |
| 67 const ResourceResponse&) override; | 67 const ResourceResponse&) override; |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 class RawResourceFactory : public ResourceFactory { | 70 class RawResourceFactory : public ResourceFactory { |
| 71 public: | 71 public: |
| 72 explicit RawResourceFactory(Resource::Type type) : ResourceFactory(type) {} | 72 explicit RawResourceFactory(Resource::Type type) : ResourceFactory(type) {} |
| 73 | 73 |
| 74 Resource* create(const ResourceRequest& request, | 74 Resource* create(const ResourceRequest& request, |
| 75 const ResourceLoaderOptions& options, | 75 const ResourceLoaderOptions& options, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 DataReceived, | 187 DataReceived, |
| 188 DataDownloaded, | 188 DataDownloaded, |
| 189 NotifyFinished | 189 NotifyFinished |
| 190 }; | 190 }; |
| 191 State m_state; | 191 State m_state; |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace blink | 194 } // namespace blink |
| 195 | 195 |
| 196 #endif // RawResource_h | 196 #endif // RawResource_h |
| OLD | NEW |