| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and th
erefore shouldn't | 38 // FIXME: AssociatedURLLoader shouldn't be a DocumentThreadableLoader and th
erefore shouldn't |
| 39 // use RawResource. However, it is, and it needs to be able to defer loading
. | 39 // use RawResource. However, it is, and it needs to be able to defer loading
. |
| 40 // This can be fixed by splitting CORS preflighting out of DocumentThreacabl
eLoader. | 40 // This can be fixed by splitting CORS preflighting out of DocumentThreacabl
eLoader. |
| 41 void setDefersLoading(bool); | 41 void setDefersLoading(bool); |
| 42 | 42 |
| 43 virtual bool canReuse(const ResourceRequest&) const OVERRIDE; | 43 virtual bool canReuse(const ResourceRequest&) const OVERRIDE; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 virtual void didAddClient(ResourceClient*) OVERRIDE; | 46 virtual void didAddClient(ResourceClient*) OVERRIDE; |
| 47 virtual void appendData(const char*, int) OVERRIDE; | 47 virtual void appendData(const char*, unsigned) OVERRIDE; |
| 48 | 48 |
| 49 virtual bool shouldIgnoreHTTPStatusCodeErrors() const OVERRIDE { return true
; } | 49 virtual bool shouldIgnoreHTTPStatusCodeErrors() const OVERRIDE { return true
; } |
| 50 | 50 |
| 51 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&) OVER
RIDE; | 51 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&) OVER
RIDE; |
| 52 virtual void updateRequest(const ResourceRequest&) OVERRIDE; | 52 virtual void updateRequest(const ResourceRequest&) OVERRIDE; |
| 53 virtual void responseReceived(const ResourceResponse&) OVERRIDE; | 53 virtual void responseReceived(const ResourceResponse&) OVERRIDE; |
| 54 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent) OVERRIDE; | 54 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent) OVERRIDE; |
| 55 virtual void didDownloadData(int) OVERRIDE; | 55 virtual void didDownloadData(int) OVERRIDE; |
| 56 }; | 56 }; |
| 57 | 57 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 class RawResourceClient : public ResourceClient { | 71 class RawResourceClient : public ResourceClient { |
| 72 public: | 72 public: |
| 73 virtual ~RawResourceClient() { } | 73 virtual ~RawResourceClient() { } |
| 74 static ResourceClientType expectedType() { return RawResourceType; } | 74 static ResourceClientType expectedType() { return RawResourceType; } |
| 75 virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { retur
n expectedType(); } | 75 virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { retur
n expectedType(); } |
| 76 | 76 |
| 77 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne
d long long /* totalBytesToBeSent */) { } | 77 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne
d long long /* totalBytesToBeSent */) { } |
| 78 virtual void responseReceived(Resource*, const ResourceResponse&) { } | 78 virtual void responseReceived(Resource*, const ResourceResponse&) { } |
| 79 virtual void dataReceived(Resource*, const char* /* data */, int /* length *
/) { } | 79 virtual void dataReceived(Resource*, const char* /* data */, unsigned /* len
gth */) { } |
| 80 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } | 80 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } |
| 81 virtual void updateRequest(Resource*, const ResourceRequest&) { } | 81 virtual void updateRequest(Resource*, const ResourceRequest&) { } |
| 82 virtual void dataDownloaded(Resource*, int) { } | 82 virtual void dataDownloaded(Resource*, int) { } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } | 85 } |
| 86 | 86 |
| 87 #endif // RawResource_h | 87 #endif // RawResource_h |
| OLD | NEW |