1// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "content/browser/net/view_blob_internals_job_factory.h"
6
7#include "base/memory/scoped_ptr.h"
8#include "base/strings/string_util.h"
9#include "content/public/common/url_constants.h"
10#include "storage/browser/blob/view_blob_internals_job.h"
11
12namespace content {
13
14// static.
15bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
16  return url.SchemeIs(kChromeUIScheme) &&
17         url.host() == kChromeUIBlobInternalsHost;
18}
19
20// static.
21net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
22    net::URLRequest* request,
23    net::NetworkDelegate* network_delegate,
24    storage::BlobStorageContext* blob_storage_context) {
25  return new storage::ViewBlobInternalsJob(
26      request, network_delegate, blob_storage_context);
27}
28
29}  // namespace content
30