By moving the call to Load() up in SearchProvider::Start(), we are giving a chance...
[chromium-blink-merge.git] / content / browser / net / view_blob_internals_job_factory.cc
blobeeb87faef3aefd3b3d46a4234bcc99eda52364e0
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.
5 #include "content/browser/net/view_blob_internals_job_factory.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "base/string_util.h"
9 #include "content/public/common/url_constants.h"
10 #include "webkit/blob/view_blob_internals_job.h"
12 namespace content {
14 // static.
15 bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
16 return url.SchemeIs(chrome::kChromeUIScheme) &&
17 url.host() == chrome::kChromeUIBlobInternalsHost;
20 // static.
21 net::URLRequestJob* ViewBlobInternalsJobFactory::CreateJobForRequest(
22 net::URLRequest* request,
23 net::NetworkDelegate* network_delegate,
24 webkit_blob::BlobStorageController* blob_storage_controller) {
25 return new webkit_blob::ViewBlobInternalsJob(
26 request, network_delegate, blob_storage_controller);
29 } // namespace content