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

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

Issue 2156503002: [NaCl SDK] Expose Google Drive to nacl_io. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
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/filesystem.h"
6 #include "nacl_io/typed_fs_factory.h"
7
8 namespace nacl_io {
9
10 class GoogleDriveFs : public Filesystem {
11 protected:
12 GoogleDriveFs();
13
14 Error Init(const FsInitArgs& args);
15
16 public:
17 Error OpenWithMode(const Path& path,
18 int open_flags,
19 mode_t mode,
20 ScopedNode* out_node);
21 Error Unlink(const Path& path);
22 Error Mkdir(const Path& path, int permissions);
23 Error Rmdir(const Path& path);
24 Error Remove(const Path& path);
25 Error Rename(const Path& path, const Path& newPath);
26
27 std::string token();
28
29 private:
30 Error IsEmptyDir(const std::string& dir_id, bool* out_is_empty_dir);
31
32 std::string token_;
33
34 friend class TypedFsFactory<GoogleDriveFs>;
35 };
36
37 } // namespace nacl_io
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698