Add file: protocol handler.

This commit is contained in:
Adrien Destugues
2013-10-24 17:41:03 +02:00
parent f6782201f0
commit c52c444c27
4 changed files with 95 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright 2013 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _B_FILE_REQUEST_H_
#define _B_FILE_REQUEST_H_
#include <deque>
#include <UrlRequest.h>
class BFileRequest : public BUrlRequest {
public:
BFileRequest(const BUrl& url,
BUrlProtocolListener* listener = NULL,
BUrlContext* context = NULL);
virtual ~BFileRequest();
void SetDisableListener(bool disable);
private:
status_t _ProtocolLoop();
};
#endif // _B_FILE_REQUEST_H_