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 #include "nacl_io/filesystem.h" |
| 6 #include "nacl_io/typed_fs_factory.h" |
| 7 #include "ppapi/cpp/instance.h" |
| 8 |
| 9 namespace nacl_io { |
| 10 |
| 11 class GoogleDriveFs : public Filesystem { |
| 12 protected: |
| 13 GoogleDriveFs(); |
| 14 virtual ~GoogleDriveFs(); |
| 15 |
| 16 Error Init(const FsInitArgs& args); |
| 17 void Destroy(); |
| 18 |
| 19 public: |
| 20 Error OpenWithMode(const Path& path, |
| 21 int open_flags, |
| 22 mode_t mode, |
| 23 ScopedNode* out_node); |
| 24 Error Unlink(const Path& path); |
| 25 Error Mkdir(const Path& path, int permissions); |
| 26 Error Rmdir(const Path& path); |
| 27 Error Remove(const Path& path); |
| 28 Error Rename(const Path& path, const Path& newPath); |
| 29 |
| 30 std::string token(); |
| 31 PP_Instance instance(); |
| 32 |
| 33 private: |
| 34 PP_Instance instance_; |
| 35 std::string token_; |
| 36 |
| 37 friend class TypedFsFactory<GoogleDriveFs>; |
| 38 }; |
| 39 |
| 40 } // namespace nacl_io |
OLD | NEW |