| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> | 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> |
| 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> | 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> |
| 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2012 Intel Corporation | 6 * Copyright (C) 2012 Intel Corporation |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 XMLHttpRequestProgressEventThrottle::DeferredEventAction action = | 527 XMLHttpRequestProgressEventThrottle::DeferredEventAction action = |
| 528 XMLHttpRequestProgressEventThrottle::Ignore; | 528 XMLHttpRequestProgressEventThrottle::Ignore; |
| 529 if (m_state == kDone) { | 529 if (m_state == kDone) { |
| 530 if (m_error) | 530 if (m_error) |
| 531 action = XMLHttpRequestProgressEventThrottle::Clear; | 531 action = XMLHttpRequestProgressEventThrottle::Clear; |
| 532 else | 532 else |
| 533 action = XMLHttpRequestProgressEventThrottle::Flush; | 533 action = XMLHttpRequestProgressEventThrottle::Flush; |
| 534 } | 534 } |
| 535 m_progressEventThrottle->dispatchReadyStateChangeEvent( | 535 m_progressEventThrottle->dispatchReadyStateChangeEvent( |
| 536 Event::create(EventTypeNames::readystatechange), action); | 536 Event::create(EventTypeNames::readystatechange), action); |
| 537 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), | |
| 538 "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data", | |
| 539 InspectorUpdateCountersEvent::data()); | |
| 540 } | 537 } |
| 541 | 538 |
| 542 if (m_state == kDone && !m_error) { | 539 if (m_state == kDone && !m_error) { |
| 543 TRACE_EVENT1("devtools.timeline", "XHRLoad", "data", | 540 TRACE_EVENT1("devtools.timeline", "XHRLoad", "data", |
| 544 InspectorXhrLoadEvent::data(getExecutionContext(), this)); | 541 InspectorXhrLoadEvent::data(getExecutionContext(), this)); |
| 545 dispatchProgressEventFromSnapshot(EventTypeNames::load); | 542 dispatchProgressEventFromSnapshot(EventTypeNames::load); |
| 546 dispatchProgressEventFromSnapshot(EventTypeNames::loadend); | 543 dispatchProgressEventFromSnapshot(EventTypeNames::loadend); |
| 547 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), | |
| 548 "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data", | |
| 549 InspectorUpdateCountersEvent::data()); | |
| 550 } | 544 } |
| 551 } | 545 } |
| 552 | 546 |
| 553 void XMLHttpRequest::setWithCredentials(bool value, | 547 void XMLHttpRequest::setWithCredentials(bool value, |
| 554 ExceptionState& exceptionState) { | 548 ExceptionState& exceptionState) { |
| 555 if (m_state > kOpened || m_sendFlag) { | 549 if (m_state > kOpened || m_sendFlag) { |
| 556 exceptionState.throwDOMException( | 550 exceptionState.throwDOMException( |
| 557 InvalidStateError, | 551 InvalidStateError, |
| 558 "The value may only be set if the object's state is UNSENT or OPENED."); | 552 "The value may only be set if the object's state is UNSENT or OPENED."); |
| 559 return; | 553 return; |
| (...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 visitor->traceWrappers(m_responseDocument); | 1883 visitor->traceWrappers(m_responseDocument); |
| 1890 visitor->traceWrappers(m_responseArrayBuffer); | 1884 visitor->traceWrappers(m_responseArrayBuffer); |
| 1891 XMLHttpRequestEventTarget::traceWrappers(visitor); | 1885 XMLHttpRequestEventTarget::traceWrappers(visitor); |
| 1892 } | 1886 } |
| 1893 | 1887 |
| 1894 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { | 1888 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { |
| 1895 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); | 1889 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); |
| 1896 } | 1890 } |
| 1897 | 1891 |
| 1898 } // namespace blink | 1892 } // namespace blink |
| OLD | NEW |