#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_
#define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_PROTOCOL_HANDLER_H_
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "net/url_request/url_request_job_factory.h"
namespace base {
class SequencedTaskRunner;
}
namespace drive {
class DriveProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
public:
explicit DriveProtocolHandler(void* profile_id);
virtual ~DriveProtocolHandler();
virtual net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
net::NetworkDelegate* network_delegate) const OVERRIDE;
private:
void* profile_id_;
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
DISALLOW_COPY_AND_ASSIGN(DriveProtocolHandler);
};
}
#endif