OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/CompositeDataConsumerHandle.h" | 5 #include "modules/fetch/CompositeDataConsumerHandle.h" |
6 | 6 |
7 #include "platform/CrossThreadFunctional.h" | 7 #include "platform/CrossThreadFunctional.h" |
8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
9 #include "public/platform/WebTaskRunner.h" | 9 #include "public/platform/WebTaskRunner.h" |
10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 | 203 |
204 CompositeDataConsumerHandle::CompositeDataConsumerHandle(std::unique_ptr<WebData
ConsumerHandle> handle, Updater** updater) | 204 CompositeDataConsumerHandle::CompositeDataConsumerHandle(std::unique_ptr<WebData
ConsumerHandle> handle, Updater** updater) |
205 : m_context(Context::create(std::move(handle))) | 205 : m_context(Context::create(std::move(handle))) |
206 { | 206 { |
207 *updater = new Updater(m_context); | 207 *updater = new Updater(m_context); |
208 } | 208 } |
209 | 209 |
210 CompositeDataConsumerHandle::~CompositeDataConsumerHandle() { } | 210 CompositeDataConsumerHandle::~CompositeDataConsumerHandle() { } |
211 | 211 |
212 WebDataConsumerHandle::Reader* CompositeDataConsumerHandle::obtainReaderInternal
(Client* client) | 212 std::unique_ptr<WebDataConsumerHandle::Reader> CompositeDataConsumerHandle::obta
inReader(Client* client) |
213 { | 213 { |
214 return m_context->obtainReader(client).release(); | 214 return m_context->obtainReader(client); |
215 } | 215 } |
216 | 216 |
217 } // namespace blink | 217 } // namespace blink |
OLD | NEW |