vfs: check userland buffers before reading them.
[haiku.git] / src / bin / urlwrapper.h
blob30d57e991ac3e7ccc2ec078feafa6c70f1262326
1 /*
2 * Copyright 2007-2009 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _URL_WRAPPER_H
6 #define _URL_WRAPPER_H
8 #include <Application.h>
9 #include <String.h>
12 class UrlWrapper : public BApplication
14 public:
15 UrlWrapper();
16 ~UrlWrapper();
18 virtual void RefsReceived(BMessage* msg);
19 virtual void ArgvReceived(int32 argc, char** argv);
20 virtual void ReadyToRun(void);
22 private:
23 status_t _Warn(const char* url);
24 status_t _DecodeUrlString(BString& string);
27 #endif // _URL_WRAPPER_H