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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs.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 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 #ifndef LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
6 #define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
7
8 #include "nacl_io/filesystem.h"
9 #include "nacl_io/node.h"
10 #include "nacl_io/path.h"
11 #include "nacl_io/typed_fs_factory.h"
12
13 namespace nacl_io {
14
15 class GoogleDriveFs : public Filesystem {
16 protected:
17 GoogleDriveFs();
18
19 Error Init(const FsInitArgs& args);
20
21 public:
22 Error OpenWithMode(const Path& path,
23 int open_flags,
24 mode_t mode,
25 ScopedNode* out_node);
26 Error Unlink(const Path& path);
27 Error Mkdir(const Path& path, int permissions);
28 Error Rmdir(const Path& path);
29 Error Remove(const Path& path);
30 Error Rename(const Path& path, const Path& newPath);
31
32 private:
33 friend class TypedFsFactory<GoogleDriveFs>;
34 };
35
36 } // namespace nacl_io
37
38 #endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698