| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 FetchInitiatorInfo initiatorInfo; | 255 FetchInitiatorInfo initiatorInfo; |
| 256 initiatorInfo.name = initiator; | 256 initiatorInfo.name = initiator; |
| 257 fetchContext.dispatchWillSendRequest(m_identifier, request, | 257 fetchContext.dispatchWillSendRequest(m_identifier, request, |
| 258 ResourceResponse(), initiatorInfo); | 258 ResourceResponse(), initiatorInfo); |
| 259 | 259 |
| 260 // Make sure the scheduler doesn't wait for the ping. | 260 // Make sure the scheduler doesn't wait for the ping. |
| 261 if (frame->frameScheduler()) | 261 if (frame->frameScheduler()) |
| 262 frame->frameScheduler()->didStopLoading(m_identifier); | 262 frame->frameScheduler()->didStopLoading(m_identifier); |
| 263 | 263 |
| 264 m_loader = wrapUnique(Platform::current()->createURLLoader()); | 264 m_loader = WTF::wrapUnique(Platform::current()->createURLLoader()); |
| 265 DCHECK(m_loader); | 265 DCHECK(m_loader); |
| 266 WrappedResourceRequest wrappedRequest(request); | 266 WrappedResourceRequest wrappedRequest(request); |
| 267 wrappedRequest.setAllowStoredCredentials(credentialsAllowed == | 267 wrappedRequest.setAllowStoredCredentials(credentialsAllowed == |
| 268 AllowStoredCredentials); | 268 AllowStoredCredentials); |
| 269 m_loader->loadAsynchronously(wrappedRequest, this); | 269 m_loader->loadAsynchronously(wrappedRequest, this); |
| 270 | 270 |
| 271 // If the server never responds, FrameLoader won't be able to cancel this load | 271 // If the server never responds, FrameLoader won't be able to cancel this load |
| 272 // and we'll sit here waiting forever. Set a very generous timeout, just in | 272 // and we'll sit here waiting forever. Set a very generous timeout, just in |
| 273 // case. | 273 // case. |
| 274 m_timeout.startOneShot(60000, BLINK_FROM_HERE); | 274 m_timeout.startOneShot(60000, BLINK_FROM_HERE); |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 bool PingLoader::sendBeacon(LocalFrame* frame, | 553 bool PingLoader::sendBeacon(LocalFrame* frame, |
| 554 int allowance, | 554 int allowance, |
| 555 const KURL& beaconURL, | 555 const KURL& beaconURL, |
| 556 Blob* data, | 556 Blob* data, |
| 557 int& payloadLength) { | 557 int& payloadLength) { |
| 558 BeaconBlob beacon(data); | 558 BeaconBlob beacon(data); |
| 559 return sendBeaconCommon(frame, allowance, beaconURL, beacon, payloadLength); | 559 return sendBeaconCommon(frame, allowance, beaconURL, beacon, payloadLength); |
| 560 } | 560 } |
| 561 | 561 |
| 562 } // namespace blink | 562 } // namespace blink |
| OLD | NEW |