Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / ThreadedDataReceiver.h
blobe0aaeed8359a8159645cfb5642751b1d80b1e654
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.
5 #ifndef ThreadedDataReceiver_h
6 #define ThreadedDataReceiver_h
8 #include "platform/heap/Handle.h"
10 namespace blink {
12 class WebThread;
14 class ThreadedDataReceiver : public WillBeGarbageCollectedMixin {
15 public:
16 virtual ~ThreadedDataReceiver() { }
18 #if !ENABLE(OILPAN)
19 virtual void ref() = 0;
20 virtual void deref() = 0;
21 #endif
23 virtual void acceptData(const char* data, int dataLength) = 0;
24 virtual WebThread* backgroundThread() = 0;
26 virtual bool needsMainthreadDataCopy() = 0;
27 virtual void acceptMainthreadDataNotification(const char* data, int dataLength, int encodedDataLength) = 0;
30 } // namespace blink
32 #endif // ThreadedDataReceiver_h