hostile-takeover/game/sdl/mac/machttpservice.h
Nathan Fulton 8ba3738d0f NSURLConnection -> NSURLSession for SDL-OSX
Code for this commit is based off of the network code in game/iphone
2016-08-31 22:43:35 -04:00

25 lines
492 B
C++

#ifndef __MACHTTPSERVICE_H__
#define __MACHTTPSERVICE_H__
#include "inc/basictypes.h"
#include "game/httpservice.h"
namespace wi {
class MacHttpService : public HttpService {
public:
MacHttpService();
// HttpService methods
virtual HttpRequest *NewRequest(HttpResponseHandler *phandler);
virtual void SubmitRequest(HttpRequest *preq);
virtual void ReleaseRequest(HttpRequest *preq);
private:
void *delegate_;
};
} // namespace wi
#endif // __MACHTTPSERVICE_H__