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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.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 unified diff | Download patch
OLDNEW
(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/googledrivefs/googledrivefs_node.h"
6
7 #include <sys/stat.h>
8
9 #include "nacl_io/googledrivefs/googledrivefs.h"
10 #include "nacl_io/kernel_handle.h"
11 #include "nacl_io/node.h"
12 #include "nacl_io/osdirent.h"
13
14 namespace nacl_io {
15
16 GoogleDriveFsNode::GoogleDriveFsNode(GoogleDriveFs* googledrivefs)
17 : Node(googledrivefs) {}
18
19 Error GoogleDriveFsNode::GetDents(size_t offs,
20 struct dirent* pdir,
21 size_t size,
22 int* out_bytes) {
23 // TODO: support getdents
24 LOG_ERROR("getdents not supported.");
25 return EPERM;
26 }
27
28 Error GoogleDriveFsNode::GetStat(struct stat* pstat) {
29 // TODO: support getstat
30 LOG_ERROR("getstat not supported.");
31 return EPERM;
32 }
33
34 Error GoogleDriveFsNode::Write(const HandleAttr& attr,
35 const void* buf,
36 size_t count,
37 int* out_bytes) {
38 // TODO: support write
39 LOG_ERROR("write not supported.");
40 return EPERM;
41 }
42
43 Error GoogleDriveFsNode::FTruncate(off_t length) {
44 // TODO: support ftruncate
45 LOG_ERROR("ftruncate not supported.");
46 return EPERM;
47 }
48
49 Error GoogleDriveFsNode::Read(const HandleAttr& attr,
50 void* buf,
51 size_t count,
52 int* out_bytes) {
53 // TODO: support read
54 LOG_ERROR("read not supported.");
55 return EPERM;
56 }
57
58 Error GoogleDriveFsNode::GetSize(off_t* out_size) {
59 // TODO: support getsize
60 LOG_ERROR("getsize not supported.");
61 return EPERM;
62 }
63
64 Error GoogleDriveFsNode::Init(int open_flags) {
65 // TODO: support init
66 LOG_ERROR("init not supported.");
67 return EPERM;
68 }
69
70 } // namespace nacl_io
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698