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

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h

Issue 12166002: Cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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_MOUNTS_MOUNT_NODE_DIR_H_ 5 #ifndef LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_
6 #define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ 6 #define LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "nacl_mounts/mount_node.h" 11 #include "nacl_mounts/mount_node.h"
12 12
13 struct dirent; 13 struct dirent;
14 14
15 class MountDev; 15 class MountDev;
16 class MountHtml5Fs; 16 class MountHtml5Fs;
17 class MountHttp; 17 class MountHttp;
18 class MountMem; 18 class MountMem;
19 19
20 class MountNodeDir : public MountNode { 20 class MountNodeDir : public MountNode {
21 protected: 21 protected:
22 MountNodeDir(Mount *mount, int ino, int dev); 22 MountNodeDir(Mount* mnt);
23 virtual ~MountNodeDir(); 23 virtual ~MountNodeDir();
24 virtual bool Init(int mode, short uid, short gid);
25 24
26 public: 25 public:
27 typedef std::map<std::string, MountNode*> MountNodeMap_t; 26 typedef std::map<std::string, MountNode*> MountNodeMap_t;
28 27
29 virtual int GetDents(size_t offs, struct dirent* pdir, size_t count); 28 virtual int GetDents(size_t offs, struct dirent* pdir, size_t count);
30 virtual int Read(size_t offs, void *buf, size_t count); 29 virtual int Read(size_t offs, void *buf, size_t count);
31 virtual int Truncate(size_t size); 30 virtual int Truncate(size_t size);
32 virtual int Write(size_t offs, void *buf, size_t count); 31 virtual int Write(size_t offs, void *buf, size_t count);
33 32
34 // Adds a finds or adds a directory entry as an INO, updating the refcount 33 // Adds a finds or adds a directory entry as an INO, updating the refcount
(...skipping 11 matching lines...) Expand all
46 struct dirent* cache_; 45 struct dirent* cache_;
47 MountNodeMap_t map_; 46 MountNodeMap_t map_;
48 47
49 friend class MountDev; 48 friend class MountDev;
50 friend class MountMem; 49 friend class MountMem;
51 friend class MountHttp; 50 friend class MountHttp;
52 friend class MountHtml5Fs; 51 friend class MountHtml5Fs;
53 }; 52 };
54 53
55 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_ 54 #endif // LIBRARIES_NACL_MOUNTS_MOUNT_NODE_DIR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698