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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/workers/WorkerThread.cpp ('k') | Source/modules/crypto/AesCbcParams.h » ('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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 createRequest(es); 713 createRequest(es);
714 } 714 }
715 715
716 void XMLHttpRequest::send(ArrayBuffer* body, ExceptionState& es) 716 void XMLHttpRequest::send(ArrayBuffer* body, ExceptionState& es)
717 { 717 {
718 LOG(Network, "XMLHttpRequest %p send() ArrayBuffer %p", this, body); 718 LOG(Network, "XMLHttpRequest %p send() ArrayBuffer %p", this, body);
719 719
720 String consoleMessage("ArrayBuffer is deprecated in XMLHttpRequest.send(). U se ArrayBufferView instead."); 720 String consoleMessage("ArrayBuffer is deprecated in XMLHttpRequest.send(). U se ArrayBufferView instead.");
721 executionContext()->addConsoleMessage(JSMessageSource, WarningMessageLevel, consoleMessage); 721 executionContext()->addConsoleMessage(JSMessageSource, WarningMessageLevel, consoleMessage);
722 722
723 WebKit::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBuf ferOrView", XMLHttpRequestSendArrayBuffer, XMLHttpRequestSendArrayBufferOrViewMa x); 723 blink::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBuff erOrView", XMLHttpRequestSendArrayBuffer, XMLHttpRequestSendArrayBufferOrViewMax );
724 724
725 sendBytesData(body->data(), body->byteLength(), es); 725 sendBytesData(body->data(), body->byteLength(), es);
726 } 726 }
727 727
728 void XMLHttpRequest::send(ArrayBufferView* body, ExceptionState& es) 728 void XMLHttpRequest::send(ArrayBufferView* body, ExceptionState& es)
729 { 729 {
730 LOG(Network, "XMLHttpRequest %p send() ArrayBufferView %p", this, body); 730 LOG(Network, "XMLHttpRequest %p send() ArrayBufferView %p", this, body);
731 731
732 WebKit::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBuf ferOrView", XMLHttpRequestSendArrayBufferView, XMLHttpRequestSendArrayBufferOrVi ewMax); 732 blink::Platform::current()->histogramEnumeration("WebCore.XHR.send.ArrayBuff erOrView", XMLHttpRequestSendArrayBufferView, XMLHttpRequestSendArrayBufferOrVie wMax);
733 733
734 sendBytesData(body->baseAddress(), body->byteLength(), es); 734 sendBytesData(body->baseAddress(), body->byteLength(), es);
735 } 735 }
736 736
737 void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionSta te& es) 737 void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionSta te& es)
738 { 738 {
739 if (!initSend(es)) 739 if (!initSend(es))
740 return; 740 return;
741 741
742 if (areMethodAndURLValidForSend()) { 742 if (areMethodAndURLValidForSend()) {
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 { 1364 {
1365 return EventTargetNames::XMLHttpRequest; 1365 return EventTargetNames::XMLHttpRequest;
1366 } 1366 }
1367 1367
1368 ExecutionContext* XMLHttpRequest::executionContext() const 1368 ExecutionContext* XMLHttpRequest::executionContext() const
1369 { 1369 {
1370 return ActiveDOMObject::executionContext(); 1370 return ActiveDOMObject::executionContext();
1371 } 1371 }
1372 1372
1373 } // namespace WebCore 1373 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/crypto/AesCbcParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698