Leon Han | 7921102 | 2019-07-13 04:28:04 | [diff] [blame] | 1 | // 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 | |
| 13 | namespace content { |
| 14 | |
| 15 | CONTENT_EXPORT std::string SerializeFetchRequestToString( |
| 16 | const blink::mojom::FetchAPIRequest& request); |
| 17 | |
| 18 | CONTENT_EXPORT blink::mojom::FetchAPIRequestPtr |
| 19 | DeserializeFetchRequestFromString(const std::string& serialized); |
| 20 | |
| 21 | } // namespace content |
| 22 | |
| 23 | #endif // CONTENT_COMMON_FETCH_FETCH_API_REQUEST_PROTO_H_ |