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

Unified Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h

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_node.h
diff --git a/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h
new file mode 100644
index 0000000000000000000000000000000000000000..e212e89d3ea2b14a600530cd3a78a5b6f64c0df1
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h
@@ -0,0 +1,35 @@
+// Copyright (c) 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.
+
+#ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
+#define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
+
+#include <sys/stat.h>
+
+#include "nacl_io/googledrivefs/googledrivefs.h"
+#include "nacl_io/kernel_handle.h"
+#include "nacl_io/node.h"
+#include "nacl_io/osdirent.h"
+
+namespace nacl_io {
+
+class GoogleDriveFsNode : public Node {
+ public:
+ GoogleDriveFsNode(GoogleDriveFs* googledrivefs);
+
+ Error GetDents(size_t offs, struct dirent* pdir, size_t size, int* out_bytes);
+ Error Write(const HandleAttr& attr,
+ const void* buf,
+ size_t count,
+ int* out_bytes);
+ Error FTruncate(off_t length);
+ Error Read(const HandleAttr& attr, void* buf, size_t count, int* out_bytes);
+ Error GetSize(off_t* out_size);
+ Error GetStat(struct stat* pstat);
+ Error Init(int open_flags);
+};
+
+} // namespace nacl_io
+
+#endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_

Powered by Google App Engine
This is Rietveld 408576698