| Index: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.h b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..900206e297018d6c86e39c958c9aec95453d43c5
|
| --- /dev/null
|
| +++ b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "nacl_io/filesystem.h"
|
| +#include "nacl_io/typed_fs_factory.h"
|
| +#include "ppapi/cpp/instance.h"
|
| +
|
| +namespace nacl_io {
|
| +
|
| +class GoogleDriveFs : public Filesystem {
|
| + protected:
|
| + GoogleDriveFs();
|
| + virtual ~GoogleDriveFs();
|
| +
|
| + Error Init(const FsInitArgs& args);
|
| + void Destroy();
|
| +
|
| + public:
|
| + Error OpenWithMode(const Path& path,
|
| + int open_flags,
|
| + mode_t mode,
|
| + ScopedNode* out_node);
|
| + Error Unlink(const Path& path);
|
| + Error Mkdir(const Path& path, int permissions);
|
| + Error Rmdir(const Path& path);
|
| + Error Remove(const Path& path);
|
| + Error Rename(const Path& path, const Path& newPath);
|
| +
|
| + std::string token();
|
| + PP_Instance instance();
|
| +
|
| + private:
|
| + PP_Instance instance_;
|
| + std::string token_;
|
| +
|
| + friend class TypedFsFactory<GoogleDriveFs>;
|
| +};
|
| +
|
| +} // namespace nacl_io
|
|
|