e67a4284c0
This API change forces all creation of BUrlRequest to be done via BUrlProtocolRoster::MakeRequest(). This allows the structure of protocol addons to be altered without breaking ABI for client applications. Change-Id: I1785c9136c50d19eaa9e57cb9d259ed8d88a5b56 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3080 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
34 lines
613 B
C++
34 lines
613 B
C++
/*
|
|
* 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 <UrlProtocolRoster.h>
|
|
#include <UrlRequest.h>
|
|
|
|
|
|
class BDataRequest: public BUrlRequest {
|
|
public:
|
|
const BUrlResult& Result() const;
|
|
private:
|
|
friend class BUrlProtocolRoster;
|
|
|
|
BDataRequest(const BUrl& url,
|
|
BUrlProtocolListener* listener = NULL,
|
|
BUrlContext* context = NULL);
|
|
|
|
status_t _ProtocolLoop();
|
|
private:
|
|
BUrlResult fResult;
|
|
};
|
|
|
|
#endif
|