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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 } 1475 }
1476 ReplaceCharsetInMediaType(content_type, charset); 1476 ReplaceCharsetInMediaType(content_type, charset);
1477 request_headers_.Set(HTTPNames::Content_Type, AtomicString(content_type)); 1477 request_headers_.Set(HTTPNames::Content_Type, AtomicString(content_type));
1478 } 1478 }
1479 1479
1480 bool XMLHttpRequest::ResponseIsXML() const { 1480 bool XMLHttpRequest::ResponseIsXML() const {
1481 return DOMImplementation::IsXMLMIMEType(FinalResponseMIMETypeWithFallback()); 1481 return DOMImplementation::IsXMLMIMEType(FinalResponseMIMETypeWithFallback());
1482 } 1482 }
1483 1483
1484 bool XMLHttpRequest::ResponseIsHTML() const { 1484 bool XMLHttpRequest::ResponseIsHTML() const {
1485 return EqualIgnoringCase(FinalResponseMIMEType(), "text/html"); 1485 return DeprecatedEqualIgnoringCase(FinalResponseMIMEType(), "text/html");
1486 } 1486 }
1487 1487
1488 int XMLHttpRequest::status() const { 1488 int XMLHttpRequest::status() const {
1489 if (state_ == kUnsent || state_ == kOpened || error_) 1489 if (state_ == kUnsent || state_ == kOpened || error_)
1490 return 0; 1490 return 0;
1491 1491
1492 if (response_.HttpStatusCode()) 1492 if (response_.HttpStatusCode())
1493 return response_.HttpStatusCode(); 1493 return response_.HttpStatusCode();
1494 1494
1495 return 0; 1495 return 0;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 visitor->TraceWrappers(response_document_); 1891 visitor->TraceWrappers(response_document_);
1892 visitor->TraceWrappers(response_array_buffer_); 1892 visitor->TraceWrappers(response_array_buffer_);
1893 XMLHttpRequestEventTarget::TraceWrappers(visitor); 1893 XMLHttpRequestEventTarget::TraceWrappers(visitor);
1894 } 1894 }
1895 1895
1896 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { 1896 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) {
1897 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); 1897 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr);
1898 } 1898 }
1899 1899
1900 } // namespace blink 1900 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathStep.cpp ('k') | third_party/WebKit/Source/modules/canvas2d/CanvasStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698