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

Side by Side Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/core/xml/XPathEvaluator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 // and they are referenced by the JavaScript wrapper. 796 // and they are referenced by the JavaScript wrapper.
797 setPendingActivity(this); 797 setPendingActivity(this);
798 } 798 }
799 } else { 799 } else {
800 ThreadableLoader::loadResourceSynchronously(scriptExecutionContext(), re quest, *this, options); 800 ThreadableLoader::loadResourceSynchronously(scriptExecutionContext(), re quest, *this, options);
801 } 801 }
802 802
803 if (!m_exceptionCode && m_error) 803 if (!m_exceptionCode && m_error)
804 m_exceptionCode = NetworkError; 804 m_exceptionCode = NetworkError;
805 if (m_exceptionCode) 805 if (m_exceptionCode)
806 es.throwDOMException(m_exceptionCode); 806 es.throwUninformativeAndGenericDOMException(m_exceptionCode);
807 } 807 }
808 808
809 void XMLHttpRequest::abort() 809 void XMLHttpRequest::abort()
810 { 810 {
811 // internalAbort() calls dropProtection(), which may release the last refere nce. 811 // internalAbort() calls dropProtection(), which may release the last refere nce.
812 RefPtr<XMLHttpRequest> protect(this); 812 RefPtr<XMLHttpRequest> protect(this);
813 813
814 bool sendFlag = m_loader; 814 bool sendFlag = m_loader;
815 815
816 if (!internalAbort()) 816 if (!internalAbort())
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 { 1314 {
1315 return eventNames().interfaceForXMLHttpRequest; 1315 return eventNames().interfaceForXMLHttpRequest;
1316 } 1316 }
1317 1317
1318 ScriptExecutionContext* XMLHttpRequest::scriptExecutionContext() const 1318 ScriptExecutionContext* XMLHttpRequest::scriptExecutionContext() const
1319 { 1319 {
1320 return ActiveDOMObject::scriptExecutionContext(); 1320 return ActiveDOMObject::scriptExecutionContext();
1321 } 1321 }
1322 1322
1323 } // namespace WebCore 1323 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/core/xml/XPathEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698