| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void prepareSubframeArchiveLoadIfNeeded(); | 175 void prepareSubframeArchiveLoadIfNeeded(); |
| 176 | 176 |
| 177 void finishedLoading(double finishTime); | 177 void finishedLoading(double finishTime); |
| 178 void mainReceivedError(const ResourceError&); | 178 void mainReceivedError(const ResourceError&); |
| 179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); | 179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); |
| 180 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&)
final; | 180 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&)
final; |
| 181 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData
ConsumerHandle>) final; | 181 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData
ConsumerHandle>) final; |
| 182 void dataReceived(Resource*, const char* data, unsigned length) final; | 182 void dataReceived(Resource*, const char* data, unsigned length) final; |
| 183 void processData(const char* data, unsigned length); | 183 void processData(const char* data, unsigned length); |
| 184 void notifyFinished(Resource*) final; | 184 void notifyFinished(Resource*) final; |
| 185 String debugName() const override { return "DocumentLoader"; } |
| 185 | 186 |
| 186 bool maybeLoadEmpty(); | 187 bool maybeLoadEmpty(); |
| 187 | 188 |
| 188 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); | 189 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); |
| 189 | 190 |
| 190 bool shouldContinueForResponse() const; | 191 bool shouldContinueForResponse() const; |
| 191 | 192 |
| 192 RawPtrWillBeMember<LocalFrame> m_frame; | 193 RawPtrWillBeMember<LocalFrame> m_frame; |
| 193 PersistentWillBeMember<ResourceFetcher> m_fetcher; | 194 PersistentWillBeMember<ResourceFetcher> m_fetcher; |
| 194 | 195 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // Used to protect against reentrancy into dataReceived(). | 242 // Used to protect against reentrancy into dataReceived(). |
| 242 bool m_inDataReceived; | 243 bool m_inDataReceived; |
| 243 RefPtr<SharedBuffer> m_dataBuffer; | 244 RefPtr<SharedBuffer> m_dataBuffer; |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 247 | 248 |
| 248 } // namespace blink | 249 } // namespace blink |
| 249 | 250 |
| 250 #endif // DocumentLoader_h | 251 #endif // DocumentLoader_h |
| OLD | NEW |