Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc

Issue 2505583002: [NaCl SDK] Add initial support for google drive to nacl_io (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc
new file mode 100644
index 0000000000000000000000000000000000000000..421e1f33bafe886a666a97d29983dd13f1c3968e
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc
@@ -0,0 +1,60 @@
+// 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/googledrivefs/googledrivefs.h"
+
+#include "nacl_io/filesystem.h"
+#include "nacl_io/node.h"
+#include "nacl_io/path.h"
+
+namespace nacl_io {
+
+GoogleDriveFs::GoogleDriveFs() {}
+
+Error GoogleDriveFs::Init(const FsInitArgs& args) {
+ // TODO: support init
+ LOG_ERROR("init not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::OpenWithMode(const Path& path,
+ int open_flags,
+ mode_t mode,
+ ScopedNode* out_node) {
+ // TODO: support openwithmode
+ LOG_ERROR("openwithmode not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::Mkdir(const Path& path, int permissions) {
+ // TODO: support mkdir
+ LOG_ERROR("mkdir not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::Rmdir(const Path& path) {
+ // TODO: support rmdir
+ LOG_ERROR("rmdir not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::Rename(const Path& path, const Path& newPath) {
+ // TODO: support rename
+ LOG_ERROR("rename not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::Unlink(const Path& path) {
+ // TODO: support unlink
+ LOG_ERROR("unlink not supported.");
+ return EPERM;
+}
+
+Error GoogleDriveFs::Remove(const Path& path) {
+ // TODO: support remove
+ LOG_ERROR("remove not supported.");
+ return EPERM;
+}
+
+} // namespace nacl_io

Powered by Google App Engine
This is Rietveld 408576698