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

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

Issue 2743023002: Migrate WTF::Deque::append() to ::push_back() (Closed)
Patch Set: rebase Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/BytesConsumer.h" 5 #include "modules/fetch/BytesConsumer.h"
6 6
7 #include "core/dom/ExecutionContext.h" 7 #include "core/dom/ExecutionContext.h"
8 #include "core/dom/TaskRunnerHelper.h" 8 #include "core/dom/TaskRunnerHelper.h"
9 #include "modules/fetch/BlobBytesConsumer.h" 9 #include "modules/fetch/BlobBytesConsumer.h"
10 #include "platform/WebTaskRunner.h" 10 #include "platform/WebTaskRunner.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 : state; 216 : state;
217 } 217 }
218 218
219 Error getError() const override { return m_tee->getError(); } 219 Error getError() const override { return m_tee->getError(); }
220 220
221 String debugName() const override { return "TeeHelper::Destination"; } 221 String debugName() const override { return "TeeHelper::Destination"; }
222 222
223 void enqueue(Chunk* chunk) { 223 void enqueue(Chunk* chunk) {
224 if (m_isCancelled) 224 if (m_isCancelled)
225 return; 225 return;
226 m_chunks.append(chunk); 226 m_chunks.push_back(chunk);
227 } 227 }
228 228
229 bool isEmpty() const { return m_chunks.isEmpty(); } 229 bool isEmpty() const { return m_chunks.isEmpty(); }
230 230
231 void clearChunks() { 231 void clearChunks() {
232 m_chunks.clear(); 232 m_chunks.clear();
233 m_offset = 0; 233 m_offset = 0;
234 } 234 }
235 235
236 void notify() { 236 void notify() {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 BytesConsumer* BytesConsumer::createErrored(const BytesConsumer::Error& error) { 370 BytesConsumer* BytesConsumer::createErrored(const BytesConsumer::Error& error) {
371 return new ErroredBytesConsumer(error); 371 return new ErroredBytesConsumer(error);
372 } 372 }
373 373
374 BytesConsumer* BytesConsumer::createClosed() { 374 BytesConsumer* BytesConsumer::createClosed() {
375 return new ClosedBytesConsumer(); 375 return new ClosedBytesConsumer();
376 } 376 }
377 377
378 } // namespace blink 378 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698