// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_COPYING_FILE_STREAM_H_ #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_COPYING_FILE_STREAM_H_ #include "base/files/file.h" #include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h" namespace subresource_filter { // Implements a CopyingInputStream that reads from a base::File. Can be used in // combination with CopyingInputStreamAdaptor for reading from that file through // the ZeroCopyInputStream interface. class CopyingFileInputStream : public google::protobuf::io::CopyingInputStream { … }; // Implements a CopyingOutputStream that writes to a base::File. Can be used in // combination with CopyingOutputStreamAdaptor for writing to that file through // the ZeroCopyOutputStream interface. class CopyingFileOutputStream : public google::protobuf::io::CopyingOutputStream { … }; } // namespace subresource_filter #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_COPYING_FILE_STREAM_H_