summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/blink_url_request_type_converters.h
blob: 7812a7c4a8354880ccc4cbd24a3a9a1f7a4b1b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 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 COMPONENTS_HTML_VIEWER_BLINK_URL_REQUEST_TYPE_CONVERTERS_H_
#define COMPONENTS_HTML_VIEWER_BLINK_URL_REQUEST_TYPE_CONVERTERS_H_

#include "mojo/services/network/public/interfaces/url_loader.mojom.h"

namespace blink {
class WebURLRequest;
}

namespace mojo {

template <>
struct TypeConverter<URLRequestPtr, blink::WebURLRequest> {
  static URLRequestPtr Convert(const blink::WebURLRequest& request);
};

}  // namespace mojo

#endif  // COMPONENTS_HTML_VIEWER_BLINK_URL_REQUEST_TYPE_CONVERTERS_H_