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