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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.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 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 <memory>
7 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
8 #include "bindings/core/v8/V8HiddenValue.h" 9 #include "bindings/core/v8/V8HiddenValue.h"
9 #include "bindings/core/v8/V8ThrowException.h" 10 #include "bindings/core/v8/V8ThrowException.h"
10 #include "core/dom/DOMArrayBuffer.h" 11 #include "core/dom/DOMArrayBuffer.h"
11 #include "core/dom/DOMTypedArray.h" 12 #include "core/dom/DOMTypedArray.h"
12 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
13 #include "core/streams/ReadableStreamController.h" 14 #include "core/streams/ReadableStreamController.h"
14 #include "core/streams/ReadableStreamOperations.h" 15 #include "core/streams/ReadableStreamOperations.h"
15 #include "modules/fetch/Body.h" 16 #include "modules/fetch/Body.h"
16 #include "modules/fetch/ReadableStreamBytesConsumer.h" 17 #include "modules/fetch/ReadableStreamBytesConsumer.h"
17 #include "platform/blob/BlobData.h" 18 #include "platform/blob/BlobData.h"
18 #include "platform/network/EncodedFormData.h" 19 #include "platform/network/EncodedFormData.h"
19 #include <memory>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 class BodyStreamBuffer::LoaderClient final 23 class BodyStreamBuffer::LoaderClient final
24 : public GarbageCollectedFinalized<LoaderClient>, 24 : public GarbageCollectedFinalized<LoaderClient>,
25 public ContextLifecycleObserver, 25 public ContextLifecycleObserver,
26 public FetchDataLoader::Client { 26 public FetchDataLoader::Client {
27 WTF_MAKE_NONCOPYABLE(LoaderClient); 27 WTF_MAKE_NONCOPYABLE(LoaderClient);
28 USING_GARBAGE_COLLECTED_MIXIN(LoaderClient); 28 USING_GARBAGE_COLLECTED_MIXIN(LoaderClient);
29 29
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 386 }
387 if (isErrored) 387 if (isErrored)
388 return BytesConsumer::createErrored(BytesConsumer::Error("error")); 388 return BytesConsumer::createErrored(BytesConsumer::Error("error"));
389 389
390 DCHECK(consumer); 390 DCHECK(consumer);
391 consumer->clearClient(); 391 consumer->clearClient();
392 return consumer; 392 return consumer;
393 } 393 }
394 394
395 } // namespace blink 395 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698