| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and th
erefore shouldn't | 57 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and th
erefore shouldn't |
| 58 // use RawResource. However, it is, and it needs to be able to defer loading
. | 58 // use RawResource. However, it is, and it needs to be able to defer loading
. |
| 59 // This can be fixed by splitting CORS preflighting out of DocumentThreacabl
eLoader. | 59 // This can be fixed by splitting CORS preflighting out of DocumentThreacabl
eLoader. |
| 60 void setDefersLoading(bool); | 60 void setDefersLoading(bool); |
| 61 | 61 |
| 62 bool canReuse(const ResourceRequest&) const override; | 62 bool canReuse(const ResourceRequest&) const override; |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 class RawResourceFactory : public ResourceFactory { | 65 class RawResourceFactory : public ResourceFactory { |
| 66 public: | 66 public: |
| 67 RawResourceFactory(Resource::Type type) | 67 explicit RawResourceFactory(Resource::Type type) |
| 68 : ResourceFactory(type) { } | 68 : ResourceFactory(type) { } |
| 69 | 69 |
| 70 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt
ions& options, const String& charset) const override | 70 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt
ions& options, const String& charset) const override |
| 71 { | 71 { |
| 72 return new RawResource(request, m_type, options); | 72 return new RawResource(request, m_type, options); |
| 73 } | 73 } |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 RawResource(const ResourceRequest&, Type, const ResourceLoaderOptions&); | 76 RawResource(const ResourceRequest&, Type, const ResourceLoaderOptions&); |
| 77 | 77 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 DataReceived, | 167 DataReceived, |
| 168 DataDownloaded, | 168 DataDownloaded, |
| 169 NotifyFinished | 169 NotifyFinished |
| 170 }; | 170 }; |
| 171 State m_state; | 171 State m_state; |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| 175 | 175 |
| 176 #endif // RawResource_h | 176 #endif // RawResource_h |
| OLD | NEW |