| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 FrameLoader* frameLoader() const; | 170 FrameLoader* frameLoader() const; |
| 171 | 171 |
| 172 void commitIfReady(); | 172 void commitIfReady(); |
| 173 void commitData(const char* bytes, size_t length); | 173 void commitData(const char* bytes, size_t length); |
| 174 void clearMainResourceHandle(); | 174 void clearMainResourceHandle(); |
| 175 | 175 |
| 176 bool maybeCreateArchive(); | 176 bool maybeCreateArchive(); |
| 177 | 177 |
| 178 void finishedLoading(double finishTime); | 178 void finishedLoading(double finishTime); |
| 179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); | 179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); |
| 180 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&)
final; | 180 bool redirectReceived(Resource*, const ResourceRequest&, const ResourceRespo
nse&) final; |
| 181 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We
bDataConsumerHandle>) final; | 181 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We
bDataConsumerHandle>) final; |
| 182 void dataReceived(Resource*, const char* data, size_t length) final; | 182 void dataReceived(Resource*, const char* data, size_t length) final; |
| 183 void processData(const char* data, size_t length); | 183 void processData(const char* data, size_t length); |
| 184 void notifyFinished(Resource*) final; | 184 void notifyFinished(Resource*) final; |
| 185 String debugName() const override { return "DocumentLoader"; } | 185 String debugName() const override { return "DocumentLoader"; } |
| 186 | 186 |
| 187 bool maybeLoadEmpty(); | 187 bool maybeLoadEmpty(); |
| 188 | 188 |
| 189 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); | 189 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); |
| 190 | 190 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Used to protect against reentrancy into dataReceived(). | 242 // Used to protect against reentrancy into dataReceived(). |
| 243 bool m_inDataReceived; | 243 bool m_inDataReceived; |
| 244 RefPtr<SharedBuffer> m_dataBuffer; | 244 RefPtr<SharedBuffer> m_dataBuffer; |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 248 | 248 |
| 249 } // namespace blink | 249 } // namespace blink |
| 250 | 250 |
| 251 #endif // DocumentLoader_h | 251 #endif // DocumentLoader_h |
| OLD | NEW |