Home | History | Annotate | Download | only in nacl_io
      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.
      4 
      5 #ifndef LIBRARIES_NACL_IO_FS_FACTORY_H_
      6 #define LIBRARIES_NACL_IO_FS_FACTORY_H_
      7 
      8 #include <errno.h>
      9 
     10 #include "nacl_io/error.h"
     11 #include "nacl_io/filesystem.h"
     12 #include "sdk_util/scoped_ref.h"
     13 
     14 namespace nacl_io {
     15 
     16 class PepperInterface;
     17 
     18 class FsFactory {
     19  public:
     20   virtual ~FsFactory() {}
     21   virtual Error CreateFilesystem(const FsInitArgs& args,
     22                                  ScopedFilesystem* out_fs) = 0;
     23 };
     24 
     25 }  // namespace nacl_io
     26 
     27 #endif  // LIBRARIES_NACL_IO_FS_FACTORY_H_
     28