blob: a39a74d12679411b5dab0bc49638d373e279dd58 [file] [log] [blame]
Leon Han79211022019-07-13 04:28:041// Copyright 2019 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.
4
5#ifndef CONTENT_COMMON_FETCH_FETCH_API_REQUEST_PROTO_H_
6#define CONTENT_COMMON_FETCH_FETCH_API_REQUEST_PROTO_H_
7
8#include <string>
9
10#include "content/common/content_export.h"
11#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
12
13namespace content {
14
15CONTENT_EXPORT std::string SerializeFetchRequestToString(
16 const blink::mojom::FetchAPIRequest& request);
17
18CONTENT_EXPORT blink::mojom::FetchAPIRequestPtr
19DeserializeFetchRequestFromString(const std::string& serialized);
20
21} // namespace content
22
23#endif // CONTENT_COMMON_FETCH_FETCH_API_REQUEST_PROTO_H_