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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/fetch/BodyStreamBuffer.h" 5 #include "modules/fetch/BodyStreamBuffer.h"
6 6
7 #include "core/dom/DOMArrayBuffer.h" 7 #include "core/dom/DOMArrayBuffer.h"
8 #include "core/dom/DOMTypedArray.h" 8 #include "core/dom/DOMTypedArray.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 #include "modules/fetch/DataConsumerHandleUtil.h" 10 #include "modules/fetch/DataConsumerHandleUtil.h"
(...skipping 13 matching lines...) Expand all
24 { 24 {
25 suspendIfNeeded(); 25 suspendIfNeeded();
26 } 26 }
27 27
28 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle) override 28 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle) override
29 { 29 {
30 m_buffer->endLoading(); 30 m_buffer->endLoading();
31 m_client->didFetchDataLoadedBlobHandle(blobDataHandle); 31 m_client->didFetchDataLoadedBlobHandle(blobDataHandle);
32 } 32 }
33 33
34 void didFetchDataLoadedArrayBuffer(PassRefPtr<DOMArrayBuffer> arrayBuffer) o verride 34 void didFetchDataLoadedArrayBuffer(DOMArrayBuffer* arrayBuffer) override
35 { 35 {
36 m_buffer->endLoading(); 36 m_buffer->endLoading();
37 m_client->didFetchDataLoadedArrayBuffer(arrayBuffer); 37 m_client->didFetchDataLoadedArrayBuffer(arrayBuffer);
38 } 38 }
39 39
40 void didFetchDataLoadedString(const String& string) override 40 void didFetchDataLoadedString(const String& string) override
41 { 41 {
42 m_buffer->endLoading(); 42 m_buffer->endLoading();
43 m_client->didFetchDataLoadedString(string); 43 m_client->didFetchDataLoadedString(string);
44 } 44 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 void BodyStreamBuffer::stopLoading() 242 void BodyStreamBuffer::stopLoading()
243 { 243 {
244 if (!m_loader) 244 if (!m_loader)
245 return; 245 return;
246 m_loader->cancel(); 246 m_loader->cancel();
247 m_loader = nullptr; 247 m_loader = nullptr;
248 } 248 }
249 249
250 } // namespace blink 250 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698