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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.h

Issue 269593011: [NaCl SDK] Modifying size_t and int to off_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Place __STDC_FORMAT_MACROS inside conditional block Created 6 years, 7 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_HTML5FS_HTML5_FS_NODE_H_ 5 #ifndef LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_NODE_H_
6 #define LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_NODE_H_ 6 #define LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_NODE_H_
7 7
8 #include <ppapi/c/pp_resource.h> 8 #include <ppapi/c/pp_resource.h>
9 #include "nacl_io/node.h" 9 #include "nacl_io/node.h"
10 10
(...skipping 16 matching lines...) Expand all
27 void* buf, 27 void* buf,
28 size_t count, 28 size_t count,
29 int* out_bytes); 29 int* out_bytes);
30 virtual Error FTruncate(off_t size); 30 virtual Error FTruncate(off_t size);
31 virtual Error Write(const HandleAttr& attr, 31 virtual Error Write(const HandleAttr& attr,
32 const void* buf, 32 const void* buf,
33 size_t count, 33 size_t count,
34 int* out_bytes); 34 int* out_bytes);
35 35
36 virtual int GetType(); 36 virtual int GetType();
37 virtual Error GetSize(size_t* out_size); 37 virtual Error GetSize(off_t* out_size);
38 virtual bool IsaDir(); 38 virtual bool IsaDir();
39 virtual bool IsaFile(); 39 virtual bool IsaFile();
40 40
41 protected: 41 protected:
42 Html5FsNode(Filesystem* filesystem, PP_Resource fileref); 42 Html5FsNode(Filesystem* filesystem, PP_Resource fileref);
43 43
44 // Init with standard open flags 44 // Init with standard open flags
45 virtual Error Init(int open_flags); 45 virtual Error Init(int open_flags);
46 virtual void Destroy(); 46 virtual void Destroy();
47 47
48 private: 48 private:
49 PP_Resource fileref_resource_; 49 PP_Resource fileref_resource_;
50 PP_Resource fileio_resource_; // 0 if the file is a directory. 50 PP_Resource fileio_resource_; // 0 if the file is a directory.
51 51
52 friend class Html5Fs; 52 friend class Html5Fs;
53 }; 53 };
54 54
55 } // namespace nacl_io 55 } // namespace nacl_io
56 56
57 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_NODE_H_ 57 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698