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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 virtual void setDataBufferingPolicy(DataBufferingPolicy); | 42 virtual void setDataBufferingPolicy(DataBufferingPolicy); |
43 | 43 |
44 // FIXME: This is exposed for the InpsectorInstrumentation for preflights in
DocumentThreadableLoader. It's also really lame. | 44 // FIXME: This is exposed for the InpsectorInstrumentation for preflights in
DocumentThreadableLoader. It's also really lame. |
45 unsigned long identifier() const { return m_identifier; } | 45 unsigned long identifier() const { return m_identifier; } |
46 | 46 |
47 void clear(); | 47 void clear(); |
48 | 48 |
49 virtual bool canReuse(const ResourceRequest&) const; | 49 virtual bool canReuse(const ResourceRequest&) const; |
50 | 50 |
51 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
52 | |
53 private: | 51 private: |
54 virtual void didAddClient(CachedResourceClient*); | 52 virtual void didAddClient(CachedResourceClient*); |
55 virtual void appendData(const char*, int) OVERRIDE; | 53 virtual void appendData(const char*, int) OVERRIDE; |
56 | 54 |
57 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; } | 55 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; } |
58 virtual void allClientsRemoved(); | 56 virtual void allClientsRemoved(); |
59 | 57 |
60 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); | 58 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); |
61 virtual void responseReceived(const ResourceResponse&); | 59 virtual void responseReceived(const ResourceResponse&); |
62 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent); | 60 virtual void didSendData(unsigned long long bytesSent, unsigned long long to
talBytesToBeSent); |
(...skipping 28 matching lines...) Expand all Loading... |
91 virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, u
nsigned long long /* totalBytesToBeSent */) { } | 89 virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, u
nsigned long long /* totalBytesToBeSent */) { } |
92 virtual void responseReceived(CachedResource*, const ResourceResponse&) { } | 90 virtual void responseReceived(CachedResource*, const ResourceResponse&) { } |
93 virtual void dataReceived(CachedResource*, const char* /* data */, int /* le
ngth */) { } | 91 virtual void dataReceived(CachedResource*, const char* /* data */, int /* le
ngth */) { } |
94 virtual void redirectReceived(CachedResource*, ResourceRequest&, const Resou
rceResponse&) { } | 92 virtual void redirectReceived(CachedResource*, ResourceRequest&, const Resou
rceResponse&) { } |
95 virtual void dataDownloaded(CachedResource*, int) { } | 93 virtual void dataDownloaded(CachedResource*, int) { } |
96 }; | 94 }; |
97 | 95 |
98 } | 96 } |
99 | 97 |
100 #endif // CachedRawResource_h | 98 #endif // CachedRawResource_h |
OLD | NEW |