Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 return; 1493 return;
1494 } 1494 }
1495 1495
1496 if (error.isTimeout()) { 1496 if (error.isTimeout()) {
1497 handleDidTimeout(); 1497 handleDidTimeout();
1498 return; 1498 return;
1499 } 1499 }
1500 1500
1501 // Network failures are already reported to Web Inspector by ResourceLoader. 1501 // Network failures are already reported to Web Inspector by ResourceLoader.
1502 if (error.domain() == errorDomainBlinkInternal) 1502 if (error.domain() == errorDomainBlinkInternal)
1503 logConsoleError(getExecutionContext(), "XMLHttpRequest cannot load " + 1503 logConsoleError(getExecutionContext(),
1504 error.failingURL() + ". " + 1504 "XMLHttpRequest cannot load " + error.failingURL() + ". " +
1505 error.localizedDescription()); 1505 error.localizedDescription());
1506 1506
1507 handleNetworkError(); 1507 handleNetworkError();
1508 } 1508 }
1509 1509
1510 void XMLHttpRequest::didFailRedirectCheck() { 1510 void XMLHttpRequest::didFailRedirectCheck() {
1511 NETWORK_DVLOG(1) << this << " didFailRedirectCheck()"; 1511 NETWORK_DVLOG(1) << this << " didFailRedirectCheck()";
1512 ScopedEventDispatchProtect protect(&m_eventDispatchRecursionLevel); 1512 ScopedEventDispatchProtect protect(&m_eventDispatchRecursionLevel);
1513 1513
1514 handleNetworkError(); 1514 handleNetworkError();
1515 } 1515 }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 visitor->traceWrappers(m_responseDocument); 1859 visitor->traceWrappers(m_responseDocument);
1860 visitor->traceWrappers(m_responseArrayBuffer); 1860 visitor->traceWrappers(m_responseArrayBuffer);
1861 XMLHttpRequestEventTarget::traceWrappers(visitor); 1861 XMLHttpRequestEventTarget::traceWrappers(visitor);
1862 } 1862 }
1863 1863
1864 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { 1864 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) {
1865 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); 1865 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr);
1866 } 1866 }
1867 1867
1868 } // namespace blink 1868 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698