OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef LIBRARIES_NACL_IO_FS_FACTORY_H_ | 5 #ifndef LIBRARIES_NACL_IO_FS_FACTORY_H_ |
6 #define LIBRARIES_NACL_IO_FS_FACTORY_H_ | 6 #define LIBRARIES_NACL_IO_FS_FACTORY_H_ |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 | 9 |
10 #include "nacl_io/error.h" | 10 #include "nacl_io/error.h" |
| 11 #include "nacl_io/filesystem.h" |
11 #include "sdk_util/scoped_ref.h" | 12 #include "sdk_util/scoped_ref.h" |
12 | 13 |
13 namespace nacl_io { | 14 namespace nacl_io { |
14 | 15 |
15 class Filesystem; | |
16 class PepperInterface; | 16 class PepperInterface; |
17 struct FsInitArgs; | |
18 | 17 |
19 class FsFactory { | 18 class FsFactory { |
20 public: | 19 public: |
21 virtual ~FsFactory() {} | 20 virtual ~FsFactory() {} |
22 virtual Error CreateFilesystem(const FsInitArgs& args, | 21 virtual Error CreateFilesystem(const FsInitArgs& args, |
23 sdk_util::ScopedRef<Filesystem>* out_fs) = 0; | 22 ScopedFilesystem* out_fs) = 0; |
24 }; | 23 }; |
25 | 24 |
26 } // namespace nacl_io | 25 } // namespace nacl_io |
27 | 26 |
28 #endif // LIBRARIES_NACL_IO_FS_FACTORY_H_ | 27 #endif // LIBRARIES_NACL_IO_FS_FACTORY_H_ |
OLD | NEW |