xref: /aosp_15_r20/external/cronet/net/tools/content_decoder_tool/content_decoder_tool.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2016 The Chromium Authors
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 NET_TOOLS_CONTENT_DECODER_TOOL_CONTENT_DECODER_TOOL_H_
6 #define NET_TOOLS_CONTENT_DECODER_TOOL_CONTENT_DECODER_TOOL_H_
7 
8 #include <ostream>
9 #include <string>
10 #include <vector>
11 
12 namespace net {
13 
14 // Processes input from |input_stream| and writes result to |output_stream|.
15 // The input will be decoded with |content_encodings|. If processing is
16 // successful, return true.
17 bool ContentDecoderToolProcessInput(std::vector<std::string> content_encodings,
18                                     std::istream* input_stream,
19                                     std::ostream* output_stream);
20 
21 }  // namespace net
22 
23 #endif  // NET_TOOLS_CONTENT_DECODER_TOOL_CONTENT_DECODER_TOOL_H_
24