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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.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/BytesConsumerForDataConsumerHandle.h" 5 #include "modules/fetch/BytesConsumerForDataConsumerHandle.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 "platform/WebTaskRunner.h" 9 #include "platform/WebTaskRunner.h"
10 #include "public/platform/WebTraceLocation.h" 10 #include "public/platform/WebTraceLocation.h"
11 #include "wtf/Functional.h" 11 #include "wtf/Functional.h"
12 12
13 #include <string.h>
13 #include <algorithm> 14 #include <algorithm>
14 #include <string.h>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 BytesConsumerForDataConsumerHandle::BytesConsumerForDataConsumerHandle( 18 BytesConsumerForDataConsumerHandle::BytesConsumerForDataConsumerHandle(
19 ExecutionContext* executionContext, 19 ExecutionContext* executionContext,
20 std::unique_ptr<WebDataConsumerHandle> handle) 20 std::unique_ptr<WebDataConsumerHandle> handle)
21 : m_executionContext(executionContext), 21 : m_executionContext(executionContext),
22 m_reader(handle->obtainReader(this)) {} 22 m_reader(handle->obtainReader(this)) {}
23 23
24 BytesConsumerForDataConsumerHandle::~BytesConsumerForDataConsumerHandle() {} 24 BytesConsumerForDataConsumerHandle::~BytesConsumerForDataConsumerHandle() {}
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 clearClient(); 168 clearClient();
169 } 169 }
170 170
171 void BytesConsumerForDataConsumerHandle::notify() { 171 void BytesConsumerForDataConsumerHandle::notify() {
172 if (m_state == InternalState::Closed || m_state == InternalState::Errored) 172 if (m_state == InternalState::Closed || m_state == InternalState::Errored)
173 return; 173 return;
174 didGetReadable(); 174 didGetReadable();
175 } 175 }
176 176
177 } // namespace blink 177 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698