| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 FrameLoader* frameLoader() const; | 204 FrameLoader* frameLoader() const; |
| 205 | 205 |
| 206 void commitIfReady(); | 206 void commitIfReady(); |
| 207 void commitData(const char* bytes, size_t length); | 207 void commitData(const char* bytes, size_t length); |
| 208 void clearMainResourceHandle(); | 208 void clearMainResourceHandle(); |
| 209 | 209 |
| 210 bool maybeCreateArchive(); | 210 bool maybeCreateArchive(); |
| 211 | 211 |
| 212 void finishedLoading(double finishTime); | 212 void finishedLoading(double finishTime); |
| 213 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); | 213 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); |
| 214 void redirectReceived(Resource*, | 214 bool redirectReceived(Resource*, |
| 215 ResourceRequest&, | 215 const ResourceRequest&, |
| 216 const ResourceResponse&) final; | 216 const ResourceResponse&) final; |
| 217 void responseReceived(Resource*, | 217 void responseReceived(Resource*, |
| 218 const ResourceResponse&, | 218 const ResourceResponse&, |
| 219 std::unique_ptr<WebDataConsumerHandle>) final; | 219 std::unique_ptr<WebDataConsumerHandle>) final; |
| 220 void dataReceived(Resource*, const char* data, size_t length) final; | 220 void dataReceived(Resource*, const char* data, size_t length) final; |
| 221 void processData(const char* data, size_t length); | 221 void processData(const char* data, size_t length); |
| 222 void notifyFinished(Resource*) final; | 222 void notifyFinished(Resource*) final; |
| 223 String debugName() const override { return "DocumentLoader"; } | 223 String debugName() const override { return "DocumentLoader"; } |
| 224 | 224 |
| 225 bool maybeLoadEmpty(); | 225 bool maybeLoadEmpty(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Used to protect against reentrancy into dataReceived(). | 280 // Used to protect against reentrancy into dataReceived(). |
| 281 bool m_inDataReceived; | 281 bool m_inDataReceived; |
| 282 RefPtr<SharedBuffer> m_dataBuffer; | 282 RefPtr<SharedBuffer> m_dataBuffer; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 285 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| 288 | 288 |
| 289 #endif // DocumentLoader_h | 289 #endif // DocumentLoader_h |
| OLD | NEW |