This source file includes following definitions.
- weak_factory_
- Start
- GetMimeType
- StartAsync
#include "net/url_request/url_request_about_job.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop/message_loop.h"
namespace net {
URLRequestAboutJob::URLRequestAboutJob(URLRequest* request,
NetworkDelegate* network_delegate)
: URLRequestJob(request, network_delegate),
weak_factory_(this) {
}
void URLRequestAboutJob::Start() {
base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&URLRequestAboutJob::StartAsync, weak_factory_.GetWeakPtr()));
}
bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const {
*mime_type = "text/html";
return true;
}
URLRequestAboutJob::~URLRequestAboutJob() {
}
void URLRequestAboutJob::StartAsync() {
NotifyHeadersComplete();
}
}