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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h ('k') | no next file » | 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 m_state = UNSENT; 985 m_state = UNSENT;
986 } 986 }
987 987
988 void XMLHttpRequest::clearVariablesForLoading() 988 void XMLHttpRequest::clearVariablesForLoading()
989 { 989 {
990 if (m_blobLoader) { 990 if (m_blobLoader) {
991 m_blobLoader->cancel(); 991 m_blobLoader->cancel();
992 m_blobLoader = nullptr; 992 m_blobLoader = nullptr;
993 } 993 }
994 994
995 m_decoder.clear(); 995 m_decoder.reset();
996 996
997 if (m_responseDocumentParser) { 997 if (m_responseDocumentParser) {
998 m_responseDocumentParser->removeClient(this); 998 m_responseDocumentParser->removeClient(this);
999 m_responseDocumentParser->detach(); 999 m_responseDocumentParser->detach();
1000 m_responseDocumentParser = nullptr; 1000 m_responseDocumentParser = nullptr;
1001 } 1001 }
1002 1002
1003 m_finalResponseCharset = String(); 1003 m_finalResponseCharset = String();
1004 } 1004 }
1005 1005
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 visitor->trace(m_responseArrayBuffer); 1714 visitor->trace(m_responseArrayBuffer);
1715 visitor->trace(m_progressEventThrottle); 1715 visitor->trace(m_progressEventThrottle);
1716 visitor->trace(m_upload); 1716 visitor->trace(m_upload);
1717 visitor->trace(m_blobLoader); 1717 visitor->trace(m_blobLoader);
1718 XMLHttpRequestEventTarget::trace(visitor); 1718 XMLHttpRequestEventTarget::trace(visitor);
1719 DocumentParserClient::trace(visitor); 1719 DocumentParserClient::trace(visitor);
1720 ActiveDOMObject::trace(visitor); 1720 ActiveDOMObject::trace(visitor);
1721 } 1721 }
1722 1722
1723 } // namespace blink 1723 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698