Fix FreeBSD build.
[haiku.git] / headers / os / net / UrlProtocolAsynchronousListener.h
blob910cec0e26ffe7856e8064fa4ab8c8e4f00dbf17
1 /*
2 * Copyright 2010 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_
6 #define _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_
9 #include <Handler.h>
10 #include <Message.h>
11 #include <UrlProtocolDispatchingListener.h>
14 class BUrlProtocolAsynchronousListener : public BHandler,
15 public BUrlProtocolListener {
16 public:
17 BUrlProtocolAsynchronousListener(
18 bool transparent = false);
19 virtual ~BUrlProtocolAsynchronousListener();
21 // Synchronous listener access
22 BUrlProtocolListener* SynchronousListener();
24 // BHandler interface
25 virtual void MessageReceived(BMessage* message);
27 private:
28 BUrlProtocolDispatchingListener*
29 fSynchronousListener;
32 #endif // _B_URL_PROTOCOL_ASYNCHRONOUS_LISTENER_H_