blob: a0861b2d620ea41cb21b9678d11ebda4b77f5415 [file] [log] [blame]
#ifndef PROXY_SERVICE_H
#define PROXY_SERVICE_H
#include <binder/IInterface.h>
#include "IProxyService.h"
#include "proxy_resolver_v8.h"
namespace android {
class ProxyService : public BnProxyService {
public:
static void instantiate();
private:
ProxyService();
virtual ~ProxyService();
public:
String16 resolveProxies(String16 host, String16 url);
void setPacFile(String16& scriptContents);
void startPacSystem();
void stopPacSystem();
private:
net::ProxyResolverV8* proxyResolver;
bool hasSetScript;
};
}
#endif //PROXY_SERVICE_H