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

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, 5 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 #include "ppapi/cpp/instance.h"
8
9 namespace nacl_io {
10
11 class GoogleDriveFs : public Filesystem {
12 protected:
13 GoogleDriveFs();
14 virtual ~GoogleDriveFs();
15
16 Error Init(const FsInitArgs& args);
17 void Destroy();
18
19 public:
20 Error OpenWithMode(const Path& path,
21 int open_flags,
22 mode_t mode,
23 ScopedNode* out_node);
24 Error Unlink(const Path& path);
25 Error Mkdir(const Path& path, int permissions);
26 Error Rmdir(const Path& path);
27 Error Remove(const Path& path);
28 Error Rename(const Path& path, const Path& newPath);
29
30 std::string token();
31 PP_Instance instance();
32
33 private:
34 PP_Instance instance_;
35 std::string token_;
36
37 friend class TypedFsFactory<GoogleDriveFs>;
38 };
39
40 } // namespace nacl_io
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698