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