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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.h

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 | « no previous file | native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc » ('j') | 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 #ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_ 5 #ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
6 #define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_ 6 #define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
7 7
8 #include "nacl_io/filesystem.h" 8 #include "nacl_io/filesystem.h"
9 #include "nacl_io/node.h" 9 #include "nacl_io/node.h"
10 #include "nacl_io/path.h" 10 #include "nacl_io/path.h"
11 #include "nacl_io/typed_fs_factory.h" 11 #include "nacl_io/typed_fs_factory.h"
12 12
13 namespace nacl_io { 13 namespace nacl_io {
14 14
15 // This is not further implemented.
16 // PNaCl is on a path to deprecation, and WebAssembly is
17 // the focused technology.
18
15 class GoogleDriveFs : public Filesystem { 19 class GoogleDriveFs : public Filesystem {
16 protected: 20 protected:
17 GoogleDriveFs(); 21 GoogleDriveFs();
18 22
19 Error Init(const FsInitArgs& args); 23 Error Init(const FsInitArgs& args);
20 24
21 public: 25 public:
22 Error OpenWithMode(const Path& path, 26 Error OpenWithMode(const Path& path,
23 int open_flags, 27 int open_flags,
24 mode_t mode, 28 mode_t mode,
25 ScopedNode* out_node); 29 ScopedNode* out_node);
26 Error Unlink(const Path& path); 30 Error Unlink(const Path& path);
27 Error Mkdir(const Path& path, int permissions); 31 Error Mkdir(const Path& path, int permissions);
28 Error Rmdir(const Path& path); 32 Error Rmdir(const Path& path);
29 Error Remove(const Path& path); 33 Error Remove(const Path& path);
30 Error Rename(const Path& path, const Path& newPath); 34 Error Rename(const Path& path, const Path& newPath);
31 35
32 private: 36 private:
33 friend class TypedFsFactory<GoogleDriveFs>; 37 friend class TypedFsFactory<GoogleDriveFs>;
34 }; 38 };
35 39
36 } // namespace nacl_io 40 } // namespace nacl_io
37 41
38 #endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_ 42 #endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698