Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / native_client_sdk / src / libraries / nacl_io / fs_factory.h
blobe90ebef5cc4a8081d7f02ab9fd1b9462f86158b8
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef LIBRARIES_NACL_IO_FS_FACTORY_H_
6 #define LIBRARIES_NACL_IO_FS_FACTORY_H_
8 #include <errno.h>
10 #include "nacl_io/error.h"
11 #include "nacl_io/filesystem.h"
12 #include "sdk_util/scoped_ref.h"
14 namespace nacl_io {
16 class PepperInterface;
18 class FsFactory {
19 public:
20 virtual ~FsFactory() {}
21 virtual Error CreateFilesystem(const FsInitArgs& args,
22 ScopedFilesystem* out_fs) = 0;
25 } // namespace nacl_io
27 #endif // LIBRARIES_NACL_IO_FS_FACTORY_H_