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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.cc

Issue 2937083003: [NaCl SDK] Add comments in the implementation code of GoogleDriveFs (Closed)
Patch Set: Created 3 years, 6 months 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
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "nacl_io/googledrivefs/googledrivefs_node.h" 5 #include "nacl_io/googledrivefs/googledrivefs_node.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 8
9 #include "nacl_io/googledrivefs/googledrivefs.h" 9 #include "nacl_io/googledrivefs/googledrivefs.h"
10 #include "nacl_io/kernel_handle.h" 10 #include "nacl_io/kernel_handle.h"
11 #include "nacl_io/node.h" 11 #include "nacl_io/node.h"
12 #include "nacl_io/osdirent.h" 12 #include "nacl_io/osdirent.h"
13 13
14 namespace nacl_io { 14 namespace nacl_io {
15 15
16 // This is not further implemented.
17 // PNaCl is on a path to deprecation, and WebAssembly is
18 // the focused technology.
19
16 GoogleDriveFsNode::GoogleDriveFsNode(GoogleDriveFs* googledrivefs) 20 GoogleDriveFsNode::GoogleDriveFsNode(GoogleDriveFs* googledrivefs)
17 : Node(googledrivefs) {} 21 : Node(googledrivefs) {}
18 22
19 Error GoogleDriveFsNode::GetDents(size_t offs, 23 Error GoogleDriveFsNode::GetDents(size_t offs,
20 struct dirent* pdir, 24 struct dirent* pdir,
21 size_t size, 25 size_t size,
22 int* out_bytes) { 26 int* out_bytes) {
23 // TODO: support getdents 27 // TODO: support getdents
24 LOG_ERROR("getdents not supported."); 28 LOG_ERROR("getdents not supported.");
25 return EPERM; 29 return EPERM;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return EPERM; 65 return EPERM;
62 } 66 }
63 67
64 Error GoogleDriveFsNode::Init(int open_flags) { 68 Error GoogleDriveFsNode::Init(int open_flags) {
65 // TODO: support init 69 // TODO: support init
66 LOG_ERROR("init not supported."); 70 LOG_ERROR("init not supported.");
67 return EPERM; 71 return EPERM;
68 } 72 }
69 73
70 } // namespace nacl_io 74 } // namespace nacl_io
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698