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
content / common / fetch / fetch_request_type_converters.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_FETCH_FETCH_REQUEST_TYPE_CONVERTERS_H_
#define CONTENT_COMMON_FETCH_FETCH_REQUEST_TYPE_CONVERTERS_H_
#include "content/common/content_export.h"
#include "services/network/public/cpp/resource_request.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
// This is used only by Service Workers for now.
namespace content {
CONTENT_EXPORT blink::mojom::FetchCacheMode
GetFetchCacheModeFromLoadFlagsForTest(int load_flags);
} // namespace content
namespace mojo {
template <>
struct TypeConverter<blink::mojom::FetchAPIRequestPtr,
network::ResourceRequest> {
static blink::mojom::FetchAPIRequestPtr Convert(
const network::ResourceRequest& input);
};
} // namespace mojo
#endif // CONTENT_COMMON_FETCH_FETCH_REQUEST_TYPE_CONVERTERS_H_