| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 private: | 50 private: |
| 51 virtual void didAddClient(ResourceClient*); | 51 virtual void didAddClient(ResourceClient*); |
| 52 virtual void appendData(const char*, int) OVERRIDE; | 52 virtual void appendData(const char*, int) OVERRIDE; |
| 53 | 53 |
| 54 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; } | 54 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; } |
| 55 | 55 |
| 56 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); | 56 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); |
| 57 virtual void responseReceived(const ResourceResponse&); | 57 virtual void responseReceived(const ResourceResponse&); |
| 58 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent); | 58 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent); |
| 59 virtual void didDownloadData(int); | 59 virtual void didDownloadData(int); |
| 60 virtual void didAddParserResourceMessageFilter() OVERRIDE; |
| 60 | 61 |
| 61 struct RedirectPair { | 62 struct RedirectPair { |
| 62 public: | 63 public: |
| 63 explicit RedirectPair(const ResourceRequest& request, const ResourceResp
onse& redirectResponse) | 64 explicit RedirectPair(const ResourceRequest& request, const ResourceResp
onse& redirectResponse) |
| 64 : m_request(request) | 65 : m_request(request) |
| 65 , m_redirectResponse(redirectResponse) | 66 , m_redirectResponse(redirectResponse) |
| 66 { | 67 { |
| 67 } | 68 } |
| 68 | 69 |
| 69 const ResourceRequest m_request; | 70 const ResourceRequest m_request; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 90 public: | 91 public: |
| 91 virtual ~RawResourceClient() { } | 92 virtual ~RawResourceClient() { } |
| 92 static ResourceClientType expectedType() { return RawResourceType; } | 93 static ResourceClientType expectedType() { return RawResourceType; } |
| 93 virtual ResourceClientType resourceClientType() const { return expectedType(
); } | 94 virtual ResourceClientType resourceClientType() const { return expectedType(
); } |
| 94 | 95 |
| 95 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne
d long long /* totalBytesToBeSent */) { } | 96 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne
d long long /* totalBytesToBeSent */) { } |
| 96 virtual void responseReceived(Resource*, const ResourceResponse&) { } | 97 virtual void responseReceived(Resource*, const ResourceResponse&) { } |
| 97 virtual void dataReceived(Resource*, const char* /* data */, int /* length *
/) { } | 98 virtual void dataReceived(Resource*, const char* /* data */, int /* length *
/) { } |
| 98 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } | 99 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } |
| 99 virtual void dataDownloaded(Resource*, int) { } | 100 virtual void dataDownloaded(Resource*, int) { } |
| 101 virtual void parserResourceMessageFilterAdded(Resource*) { } |
| 100 }; | 102 }; |
| 101 | 103 |
| 104 |
| 102 } | 105 } |
| 103 | 106 |
| 104 #endif // RawResource_h | 107 #endif // RawResource_h |
| OLD | NEW |