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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/googledrivefs/googledrivefs_node.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 (c) 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_NODE_H_
6 #define LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
7
8 #include <sys/stat.h>
9
10 #include "nacl_io/googledrivefs/googledrivefs.h"
11 #include "nacl_io/kernel_handle.h"
12 #include "nacl_io/node.h"
13 #include "nacl_io/osdirent.h"
14
15 namespace nacl_io {
16
17 class GoogleDriveFsNode : public Node {
18 public:
19 GoogleDriveFsNode(GoogleDriveFs* googledrivefs);
20
21 Error GetDents(size_t offs, struct dirent* pdir, size_t size, int* out_bytes);
22 Error Write(const HandleAttr& attr,
23 const void* buf,
24 size_t count,
25 int* out_bytes);
26 Error FTruncate(off_t length);
27 Error Read(const HandleAttr& attr, void* buf, size_t count, int* out_bytes);
28 Error GetSize(off_t* out_size);
29 Error GetStat(struct stat* pstat);
30 Error Init(int open_flags);
31 };
32
33 } // namespace nacl_io
34
35 #endif // LIBRARIES_NACL_IO_GOOGLEDRIVEFS_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698