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

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

Issue 312493004: Introduce XMLHttpRequest.responseURL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/core/xml/XMLHttpRequest.h ('k') | Source/core/xml/XMLHttpRequest.idl » ('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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 case ResponseTypeBlob: 397 case ResponseTypeBlob:
398 return "blob"; 398 return "blob";
399 case ResponseTypeArrayBuffer: 399 case ResponseTypeArrayBuffer:
400 return "arraybuffer"; 400 return "arraybuffer";
401 case ResponseTypeStream: 401 case ResponseTypeStream:
402 return "stream"; 402 return "stream";
403 } 403 }
404 return ""; 404 return "";
405 } 405 }
406 406
407 String XMLHttpRequest::responseURL()
408 {
409 return m_response.url().string();
410 }
411
407 XMLHttpRequestUpload* XMLHttpRequest::upload() 412 XMLHttpRequestUpload* XMLHttpRequest::upload()
408 { 413 {
409 if (!m_upload) 414 if (!m_upload)
410 m_upload = XMLHttpRequestUpload::create(this); 415 m_upload = XMLHttpRequestUpload::create(this);
411 return m_upload.get(); 416 return m_upload.get();
412 } 417 }
413 418
414 void XMLHttpRequest::trackProgress(int length) 419 void XMLHttpRequest::trackProgress(int length)
415 { 420 {
416 m_receivedLength += length; 421 m_receivedLength += length;
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 { 1415 {
1411 visitor->trace(m_responseBlob); 1416 visitor->trace(m_responseBlob);
1412 visitor->trace(m_responseStream); 1417 visitor->trace(m_responseStream);
1413 visitor->trace(m_responseDocument); 1418 visitor->trace(m_responseDocument);
1414 visitor->trace(m_progressEventThrottle); 1419 visitor->trace(m_progressEventThrottle);
1415 visitor->trace(m_upload); 1420 visitor->trace(m_upload);
1416 XMLHttpRequestEventTarget::trace(visitor); 1421 XMLHttpRequestEventTarget::trace(visitor);
1417 } 1422 }
1418 1423
1419 } // namespace WebCore 1424 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.h ('k') | Source/core/xml/XMLHttpRequest.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698