| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 "public/platform/WebThreadedDataReceiver.h" | 5 #include "public/platform/WebThreadedDataReceiver.h" |
| 6 | 6 |
| 7 #include "platform/ThreadedDataReceiver.h" | 7 #include "platform/ThreadedDataReceiver.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 WebThreadedDataReceiver::WebThreadedDataReceiver(const PassRefPtrWillBeRawPtr<Th
readedDataReceiver>& threadedDataReceiver) | 11 WebThreadedDataReceiver::WebThreadedDataReceiver(const RawPtr<ThreadedDataReceiv
er>& threadedDataReceiver) |
| 12 : m_private(threadedDataReceiver) | 12 : m_private(threadedDataReceiver) |
| 13 { | 13 { |
| 14 } | 14 } |
| 15 | 15 |
| 16 void WebThreadedDataReceiver::reset() | 16 void WebThreadedDataReceiver::reset() |
| 17 { | 17 { |
| 18 m_private.reset(); | 18 m_private.reset(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void WebThreadedDataReceiver::assign(const WebThreadedDataReceiver& other) | 21 void WebThreadedDataReceiver::assign(const WebThreadedDataReceiver& other) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 38 return m_private->needsMainthreadDataCopy(); | 38 return m_private->needsMainthreadDataCopy(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void WebThreadedDataReceiver::acceptMainthreadDataNotification(const char* data,
int dataLength, int encodedDataLength) | 41 void WebThreadedDataReceiver::acceptMainthreadDataNotification(const char* data,
int dataLength, int encodedDataLength) |
| 42 { | 42 { |
| 43 return m_private->acceptMainthreadDataNotification(data, dataLength, encoded
DataLength); | 43 return m_private->acceptMainthreadDataNotification(data, dataLength, encoded
DataLength); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |