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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 <string.h>
8 #include <algorithm>
7 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
8 #include "core/dom/TaskRunnerHelper.h" 10 #include "core/dom/TaskRunnerHelper.h"
9 #include "modules/fetch/BlobBytesConsumer.h" 11 #include "modules/fetch/BlobBytesConsumer.h"
10 #include "platform/WebTaskRunner.h" 12 #include "platform/WebTaskRunner.h"
11 #include "platform/blob/BlobData.h" 13 #include "platform/blob/BlobData.h"
12 #include "wtf/Functional.h" 14 #include "wtf/Functional.h"
13 #include "wtf/RefPtr.h" 15 #include "wtf/RefPtr.h"
14 #include <algorithm>
15 #include <string.h>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 namespace { 19 namespace {
20 20
21 class NoopClient final : public GarbageCollectedFinalized<NoopClient>, 21 class NoopClient final : public GarbageCollectedFinalized<NoopClient>,
22 public BytesConsumer::Client { 22 public BytesConsumer::Client {
23 USING_GARBAGE_COLLECTED_MIXIN(NoopClient); 23 USING_GARBAGE_COLLECTED_MIXIN(NoopClient);
24 24
25 public: 25 public:
(...skipping 343 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