summaryrefslogtreecommitdiffstats
path: root/content/public/browser/android/content_protocol_handler.h
blob: 74a564f2ae565860e910376100ffe6cf18c00510 (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) 2014 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_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_
#define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_

#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "net/url_request/url_request_job_factory.h"

namespace base {
class TaskRunner;
}

namespace content {

// ProtocolHandler for content scheme jobs.
class CONTENT_EXPORT ContentProtocolHandler :
    public net::URLRequestJobFactory::ProtocolHandler {
 public:
  // Creates and returns a ContentProtocolHandler instance.
  static scoped_ptr<ContentProtocolHandler> Create(
      const scoped_refptr<base::TaskRunner>& content_task_runner);

  ~ContentProtocolHandler() override {}
};

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_PROTOCOL_HANDLER_H_