xref: /haiku/headers/private/netservices/UrlProtocolRoster.h (revision 7aa55747139506809789e3048dbee94bb9437437)
1 /*
2  * Copyright 2013 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef _B_URL_ROSTER_H_
7 #define _B_URL_ROSTER_H_
8 
9 
10 #include <stdlib.h>
11 
12 
13 class BDataIO;
14 class BUrl;
15 
16 #ifndef LIBNETAPI_DEPRECATED
17 namespace BPrivate {
18 
19 namespace Network {
20 #endif
21 
22 class BUrlContext;
23 class BUrlProtocolListener;
24 class BUrlRequest;
25 
26 class BUrlProtocolRoster {
27 public:
28 #ifdef LIBNETAPI_DEPRECATED
29 	static	BUrlRequest*	MakeRequest(const BUrl& url,
30 								BUrlProtocolListener* listener = NULL,
31 								BUrlContext* context = NULL);
32 #else
33 	static	BUrlRequest*	MakeRequest(const BUrl& url, BDataIO* output,
34 								BUrlProtocolListener* listener = NULL,
35 								BUrlContext* context = NULL);
36 #endif
37 };
38 
39 #ifndef LIBNETAPI_DEPRECATED
40 } // namespace Network
41 
42 } // namespace BPrivate
43 #endif
44 
45 #endif
46