OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 void willSendRequest(ResourceRequest&, const ResourceResponse&); | 190 void willSendRequest(ResourceRequest&, const ResourceResponse&); |
191 void finishedLoading(double finishTime); | 191 void finishedLoading(double finishTime); |
192 void mainReceivedError(const ResourceError&); | 192 void mainReceivedError(const ResourceError&); |
193 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc
eResponse&) OVERRIDE; | 193 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc
eResponse&) OVERRIDE; |
194 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI
DE; | 194 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI
DE; |
195 virtual void dataReceived(Resource*, const char* data, int length) OVERR
IDE; | 195 virtual void dataReceived(Resource*, const char* data, int length) OVERR
IDE; |
196 virtual void notifyFinished(Resource*) OVERRIDE; | 196 virtual void notifyFinished(Resource*) OVERRIDE; |
197 | 197 |
198 bool maybeLoadEmpty(); | 198 bool maybeLoadEmpty(); |
199 | 199 |
200 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes
ponse&); | 200 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&
); |
201 | 201 |
202 bool shouldContinueForResponse() const; | 202 bool shouldContinueForResponse() const; |
203 | 203 |
204 typedef Timer<DocumentLoader> DocumentLoaderTimer; | 204 typedef Timer<DocumentLoader> DocumentLoaderTimer; |
205 | 205 |
206 void handleSubstituteDataLoadSoon(); | 206 void handleSubstituteDataLoadSoon(); |
207 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); | 207 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); |
208 void startDataLoadTimer(); | 208 void startDataLoadTimer(); |
209 | 209 |
210 Frame* m_frame; | 210 Frame* m_frame; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 unsigned long m_identifierForLoadWithoutResourceLoader; | 255 unsigned long m_identifierForLoadWithoutResourceLoader; |
256 | 256 |
257 DocumentLoaderTimer m_dataLoadTimer; | 257 DocumentLoaderTimer m_dataLoadTimer; |
258 | 258 |
259 friend class ApplicationCacheHost; // for substitute resource delivery | 259 friend class ApplicationCacheHost; // for substitute resource delivery |
260 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; | 260 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; |
261 }; | 261 }; |
262 } | 262 } |
263 | 263 |
264 #endif // DocumentLoader_h | 264 #endif // DocumentLoader_h |
OLD | NEW |