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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_mem.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_MEM_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_MEM_H_
6 #define LIBRARIES_NACL_IO_MOUNT_MEM_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_MEM_H_
7 7
8 #include "nacl_io/mount.h" 8 #include "nacl_io/mount.h"
9 #include "nacl_io/typed_mount_factory.h" 9 #include "nacl_io/typed_mount_factory.h"
10 10
11 namespace nacl_io {
12
11 class MountMem : public Mount { 13 class MountMem : public Mount {
12 protected: 14 protected:
13 MountMem(); 15 MountMem();
14 16
15 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); 17 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
16 18
17 // The protected functions are only used internally and will not 19 // The protected functions are only used internally and will not
18 // acquire or release the mount's lock themselves. The caller is 20 // acquire or release the mount's lock themselves. The caller is
19 // required to use correct locking as needed. 21 // required to use correct locking as needed.
20 22
(...skipping 18 matching lines...) Expand all
39 static const int REMOVE_ALL = REMOVE_DIR | REMOVE_FILE; 41 static const int REMOVE_ALL = REMOVE_DIR | REMOVE_FILE;
40 42
41 Error RemoveInternal(const Path& path, int remove_type); 43 Error RemoveInternal(const Path& path, int remove_type);
42 44
43 ScopedMountNode root_; 45 ScopedMountNode root_;
44 46
45 friend class TypedMountFactory<MountMem>; 47 friend class TypedMountFactory<MountMem>;
46 DISALLOW_COPY_AND_ASSIGN(MountMem); 48 DISALLOW_COPY_AND_ASSIGN(MountMem);
47 }; 49 };
48 50
51 } // namespace nacl_io
52
49 #endif // LIBRARIES_NACL_IO_MOUNT_MEM_H_ 53 #endif // LIBRARIES_NACL_IO_MOUNT_MEM_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_http.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_mem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698