| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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_GOOGLEDRIVEFS_H_ |
| 6 #define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_ |
| 7 |
| 8 #include "nacl_io/filesystem.h" |
| 9 #include "nacl_io/node.h" |
| 10 #include "nacl_io/path.h" |
| 11 #include "nacl_io/typed_fs_factory.h" |
| 12 |
| 13 namespace nacl_io { |
| 14 |
| 15 class GoogleDriveFs : public Filesystem { |
| 16 protected: |
| 17 GoogleDriveFs(); |
| 18 |
| 19 Error Init(const FsInitArgs& args); |
| 20 |
| 21 public: |
| 22 Error OpenWithMode(const Path& path, |
| 23 int open_flags, |
| 24 mode_t mode, |
| 25 ScopedNode* out_node); |
| 26 Error Unlink(const Path& path); |
| 27 Error Mkdir(const Path& path, int permissions); |
| 28 Error Rmdir(const Path& path); |
| 29 Error Remove(const Path& path); |
| 30 Error Rename(const Path& path, const Path& newPath); |
| 31 |
| 32 private: |
| 33 friend class TypedFsFactory<GoogleDriveFs>; |
| 34 }; |
| 35 |
| 36 } // namespace nacl_io |
| 37 |
| 38 #endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_ |
| OLD | NEW |