summaryrefslogtreecommitdiff
path: root/chromium/fuchsia/http/http_service_impl.h
blob: db2703d7cb201fc1fb68178744373e10d714b133 (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
// Copyright 2018 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 FUCHSIA_HTTP_HTTP_SERVICE_IMPL_H_
#define FUCHSIA_HTTP_HTTP_SERVICE_IMPL_H_

#include <fuchsia/net/oldhttp/cpp/fidl.h>
#include <lib/fidl/cpp/interface_request.h>

#include "net/url_request/url_request_context.h"

// Implements the Fuchsia HttpService API, using the //net library.
class HttpServiceImpl : public ::fuchsia::net::oldhttp::HttpService {
 public:
  HttpServiceImpl();
  ~HttpServiceImpl() override;

  // HttpService methods:
  void CreateURLLoader(
      fidl::InterfaceRequest<::fuchsia::net::oldhttp::URLLoader> request)
      override;

 private:
  DISALLOW_COPY_AND_ASSIGN(HttpServiceImpl);
};

#endif  // FUCHSIA_HTTP_HTTP_SERVICE_IMPL_H_