/* * Copyright 2013 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Adrien Destugues, pulkomandy@pulkomandy.tk */ #ifndef _B_DATA_REQUEST_H_ #define _B_DATA_REQUEST_H_ #include #include namespace BPrivate { namespace Network { class BDataRequest: public BUrlRequest { public: const BUrlResult& Result() const; private: friend class BUrlProtocolRoster; BDataRequest(const BUrl& url, BDataIO* output, BUrlProtocolListener* listener = NULL, BUrlContext* context = NULL); status_t _ProtocolLoop(); private: BUrlResult fResult; }; } // namespace Network } // namespace BPrivate #endif