| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) |
| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 ASSERT(!request.isNull()); | 270 ASSERT(!request.isNull()); |
| 271 if (!redirectResponse.isNull()) { | 271 if (!redirectResponse.isNull()) { |
| 272 if (!m_documentLoader->cachedResourceLoader()->canRequest(m_resource->ty
pe(), request.url(), m_options.contentSecurityPolicyOption)) { | 272 if (!m_documentLoader->cachedResourceLoader()->canRequest(m_resource->ty
pe(), request.url(), m_options.contentSecurityPolicyOption)) { |
| 273 cancel(); | 273 cancel(); |
| 274 return; | 274 return; |
| 275 } | 275 } |
| 276 if (m_resource->type() == CachedResource::ImageResource && m_documentLoa
der->cachedResourceLoader()->shouldDeferImageLoad(request.url())) { | 276 if (m_resource->type() == CachedResource::ImageResource && m_documentLoa
der->cachedResourceLoader()->shouldDeferImageLoad(request.url())) { |
| 277 cancel(); | 277 cancel(); |
| 278 return; | 278 return; |
| 279 } | 279 } |
| 280 m_documentLoader->cachedResourceLoader()->redirectReceived(m_resource, r
edirectResponse); | |
| 281 m_resource->willSendRequest(request, redirectResponse); | 280 m_resource->willSendRequest(request, redirectResponse); |
| 282 } | 281 } |
| 283 | 282 |
| 284 if (request.isNull() || m_state == Terminated) | 283 if (request.isNull() || m_state == Terminated) |
| 285 return; | 284 return; |
| 286 | 285 |
| 287 if (m_options.sendLoadCallbacks == SendCallbacks) | 286 if (m_options.sendLoadCallbacks == SendCallbacks) |
| 288 frameLoader()->notifier()->dispatchWillSendRequest(m_documentLoader.get(
), m_resource->identifier(), request, redirectResponse, m_options.initiatorInfo)
; | 287 frameLoader()->notifier()->dispatchWillSendRequest(m_documentLoader.get(
), m_resource->identifier(), request, redirectResponse, m_options.initiatorInfo)
; |
| 289 else | 288 else |
| 290 InspectorInstrumentation::willSendRequest(m_frame.get(), m_resource->ide
ntifier(), m_documentLoader.get(), request, redirectResponse, m_options.initiato
rInfo); | 289 InspectorInstrumentation::willSendRequest(m_frame.get(), m_resource->ide
ntifier(), m_documentLoader.get(), request, redirectResponse, m_options.initiato
rInfo); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 info.addMember(m_request, "request"); | 423 info.addMember(m_request, "request"); |
| 425 info.addMember(m_originalRequest, "originalRequest"); | 424 info.addMember(m_originalRequest, "originalRequest"); |
| 426 info.addMember(m_deferredRequest, "deferredRequest"); | 425 info.addMember(m_deferredRequest, "deferredRequest"); |
| 427 info.addMember(m_options, "options"); | 426 info.addMember(m_options, "options"); |
| 428 info.addMember(m_resource, "resource"); | 427 info.addMember(m_resource, "resource"); |
| 429 info.addMember(m_documentLoader, "documentLoader"); | 428 info.addMember(m_documentLoader, "documentLoader"); |
| 430 info.addMember(m_requestCountTracker, "requestCountTracker"); | 429 info.addMember(m_requestCountTracker, "requestCountTracker"); |
| 431 } | 430 } |
| 432 | 431 |
| 433 } | 432 } |
| OLD | NEW |