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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class RawResourceFactory : public ResourceFactory { | 60 class RawResourceFactory : public ResourceFactory { |
61 public: | 61 public: |
62 RawResourceFactory(Resource::Type type) | 62 RawResourceFactory(Resource::Type type) |
63 : ResourceFactory(type) { } | 63 : ResourceFactory(type) { } |
64 | 64 |
65 Resource* create(const ResourceRequest& request, const String& charset)
const override | 65 Resource* create(const ResourceRequest& request, const String& charset)
const override |
66 { | 66 { |
67 return new RawResource(request, m_type); | 67 return new RawResource(request, m_type); |
68 } | 68 } |
69 }; | 69 }; |
70 static void preCacheSubstituteDataForMainResource(const FetchRequest&, Resou
rceFetcher*, const SubstituteData&); | |
71 | 70 |
72 void didAddClient(ResourceClient*) override; | 71 void didAddClient(ResourceClient*) override; |
73 void appendData(const char*, unsigned) override; | 72 void appendData(const char*, unsigned) override; |
74 | 73 |
75 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } | 74 bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; } |
76 | 75 |
77 void willFollowRedirect(ResourceRequest&, const ResourceResponse&) override; | 76 void willFollowRedirect(ResourceRequest&, const ResourceResponse&) override; |
78 void updateRequest(const ResourceRequest&) override; | 77 void updateRequest(const ResourceRequest&) override; |
79 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; | 78 void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHan
dle>) override; |
80 void setSerializedCachedMetadata(const char*, size_t) override; | 79 void setSerializedCachedMetadata(const char*, size_t) override; |
(...skipping 27 matching lines...) Expand all Loading... |
108 virtual void dataReceived(Resource*, const char* /* data */, unsigned /* len
gth */) { } | 107 virtual void dataReceived(Resource*, const char* /* data */, unsigned /* len
gth */) { } |
109 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } | 108 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes
ponse&) { } |
110 virtual void updateRequest(Resource*, const ResourceRequest&) { } | 109 virtual void updateRequest(Resource*, const ResourceRequest&) { } |
111 virtual void dataDownloaded(Resource*, int) { } | 110 virtual void dataDownloaded(Resource*, int) { } |
112 virtual void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&)
{ } | 111 virtual void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&)
{ } |
113 }; | 112 }; |
114 | 113 |
115 } | 114 } |
116 | 115 |
117 #endif // RawResource_h | 116 #endif // RawResource_h |
OLD | NEW |