chromium/components/paint_preview/common/file_stream.h

// Copyright 2019 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_PAINT_PREVIEW_COMMON_FILE_STREAM_H_
#define COMPONENTS_PAINT_PREVIEW_COMMON_FILE_STREAM_H_

#include "base/files/file.h"
#include "third_party/skia/include/core/SkStream.h"

namespace paint_preview {

// An implementation of the SkWStream interface backed by base::File.
class FileWStream : public SkWStream {};

// An implementation of the SkWStream interface backed by base::File. Only
// implements the minimal interface and not the Seekable/Rewindable variants.
class FileRStream : public SkStream {};

}  // namespace paint_preview

#endif  // COMPONENTS_PAINT_PREVIEW_COMMON_FILE_STREAM_H_