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

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

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 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 | 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_IO_MOUNT_NODE_DIR_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_
6 #define LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "nacl_io/mount_node.h" 11 #include "nacl_io/mount_node.h"
12 12
13 struct dirent; 13 namespace nacl_io {
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 class MountNodeDir; 19 class MountNodeDir;
20 20
21 typedef ScopedRef<MountNodeDir> ScopedMountNodeDir; 21 typedef sdk_util::ScopedRef<MountNodeDir> ScopedMountNodeDir;
22 22
23 class MountNodeDir : public MountNode { 23 class MountNodeDir : public MountNode {
24 protected: 24 protected:
25 explicit MountNodeDir(Mount* mnt); 25 explicit MountNodeDir(Mount* mnt);
26 virtual ~MountNodeDir(); 26 virtual ~MountNodeDir();
27 27
28 public: 28 public:
29 typedef std::map<std::string, ScopedMountNode> MountNodeMap_t; 29 typedef std::map<std::string, ScopedMountNode> MountNodeMap_t;
30 30
31 virtual Error FTruncate(off_t size); 31 virtual Error FTruncate(off_t size);
(...skipping 18 matching lines...) Expand all
50 private: 50 private:
51 struct dirent* cache_; 51 struct dirent* cache_;
52 MountNodeMap_t map_; 52 MountNodeMap_t map_;
53 53
54 friend class MountDev; 54 friend class MountDev;
55 friend class MountMem; 55 friend class MountMem;
56 friend class MountHttp; 56 friend class MountHttp;
57 friend class MountHtml5Fs; 57 friend class MountHtml5Fs;
58 }; 58 };
59 59
60 } // namespace nacl_io
61
60 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_ 62 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_DIR_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698