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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 if (LocalFrame* frame = this->frame()) { | 379 if (LocalFrame* frame = this->frame()) { |
380 TRACE_EVENT1("devtools.timeline", "ResourceFinish", "data", | 380 TRACE_EVENT1("devtools.timeline", "ResourceFinish", "data", |
381 InspectorResourceFinishEvent::data(m_identifier, 0, true)); | 381 InspectorResourceFinishEvent::data(m_identifier, 0, true)); |
382 didFailLoading(frame); | 382 didFailLoading(frame); |
383 } | 383 } |
384 dispose(); | 384 dispose(); |
385 } | 385 } |
386 | 386 |
387 void PingLoaderImpl::didFailLoading(LocalFrame* frame) { | 387 void PingLoaderImpl::didFailLoading(LocalFrame* frame) { |
388 InspectorInstrumentation::didFailLoading( | 388 InspectorInstrumentation::didFailLoading( |
389 frame, m_identifier, ResourceError::cancelledError(m_url)); | 389 frame, m_identifier, ResourceError::cancelledError(m_url), -1); |
390 frame->console().didFailLoading(m_identifier, | 390 frame->console().didFailLoading(m_identifier, |
391 ResourceError::cancelledError(m_url)); | 391 ResourceError::cancelledError(m_url)); |
392 } | 392 } |
393 | 393 |
394 DEFINE_TRACE(PingLoaderImpl) { | 394 DEFINE_TRACE(PingLoaderImpl) { |
395 DOMWindowProperty::trace(visitor); | 395 DOMWindowProperty::trace(visitor); |
396 } | 396 } |
397 | 397 |
398 void finishPingRequestInitialization( | 398 void finishPingRequestInitialization( |
399 ResourceRequest& request, | 399 ResourceRequest& request, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 bool PingLoader::sendBeacon(LocalFrame* frame, | 557 bool PingLoader::sendBeacon(LocalFrame* frame, |
558 int allowance, | 558 int allowance, |
559 const KURL& beaconURL, | 559 const KURL& beaconURL, |
560 Blob* data, | 560 Blob* data, |
561 int& payloadLength) { | 561 int& payloadLength) { |
562 BeaconBlob beacon(data); | 562 BeaconBlob beacon(data); |
563 return sendBeaconCommon(frame, allowance, beaconURL, beacon, payloadLength); | 563 return sendBeaconCommon(frame, allowance, beaconURL, beacon, payloadLength); |
564 } | 564 } |
565 | 565 |
566 } // namespace blink | 566 } // namespace blink |
OLD | NEW |