This source file includes following definitions.
- IsSupportedURL
- CreateJobForRequest
#include "content/browser/net/view_blob_internals_job_factory.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
#include "content/public/common/url_constants.h"
#include "webkit/browser/blob/view_blob_internals_job.h"
namespace content {
bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
return url.SchemeIs(kChromeUIScheme) &&
url.host() == kChromeUIBlobInternalsHost;
}
net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
net::URLRequest* request,
net::NetworkDelegate* network_delegate,
webkit_blob::BlobStorageContext* blob_storage_context) {
return new webkit_blob::ViewBlobInternalsJob(
request, network_delegate, blob_storage_context);
}
}