summaryrefslogtreecommitdiffstats
path: root/content/browser/net/view_blob_internals_job_factory.h
blob: 4d4b60abf4c68b6540c1b84554bf0b371817538c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_NET_VIEW_BLOB_INTERNALS_JOB_FACTORY_H_
#define CONTENT_BROWSER_NET_VIEW_BLOB_INTERNALS_JOB_FACTORY_H_

namespace net {
class NetworkDelegate;
class URLRequest;
class URLRequestJob;
}  // namespace net
namespace webkit_blob {
class BlobStorageContext;
}  // webkit_blob

class GURL;

namespace content {

class ViewBlobInternalsJobFactory {
 public:
  static bool IsSupportedURL(const GURL& url);
  static net::URLRequestJob* CreateJobForRequest(
      net::URLRequest* request,
      net::NetworkDelegate* network_delegate,
      webkit_blob::BlobStorageContext* blob_storage_context);
};

}  // namespace content

#endif  // CONTENT_BROWSER_NET_VIEW_BLOB_INTERNALS_JOB_FACTORY_H_