OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "public/platform/WebThreadedDataReceiver.h" |
| 7 |
| 8 #include "core/html/parser/ThreadedDataReceiver.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 WebThreadedDataReceiver::WebThreadedDataReceiver(const PassRefPtrWillBeRawPtr<Th
readedDataReceiver>& threadedDataReceiver) |
| 13 : m_private(threadedDataReceiver) |
| 14 { |
| 15 } |
| 16 |
| 17 void WebThreadedDataReceiver::reset() |
| 18 { |
| 19 m_private.reset(); |
| 20 } |
| 21 |
| 22 void WebThreadedDataReceiver::assign(const WebThreadedDataReceiver& other) |
| 23 { |
| 24 m_private = other.m_private; |
| 25 } |
| 26 |
| 27 void WebThreadedDataReceiver::acceptData(const char* data, int dataLength) |
| 28 { |
| 29 return m_private->acceptData(data, dataLength); |
| 30 } |
| 31 |
| 32 WebThread* WebThreadedDataReceiver::backgroundThread() |
| 33 { |
| 34 return m_private->backgroundThread(); |
| 35 } |
| 36 |
| 37 bool WebThreadedDataReceiver::needsMainthreadDataCopy() |
| 38 { |
| 39 return m_private->needsMainthreadDataCopy(); |
| 40 } |
| 41 |
| 42 void WebThreadedDataReceiver::acceptMainthreadDataNotification(const char* data,
int dataLength, int encodedDataLength) |
| 43 { |
| 44 return m_private->acceptMainthreadDataNotification(data, dataLength, encoded
DataLength); |
| 45 } |
| 46 |
| 47 } // namespace blink |
OLD | NEW |