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

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

Issue 16325024: Move thread_pool.h into utils so it can be shared by more than one example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_H_
6 #define LIBRARIES_NACL_IO_MOUNT_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "nacl_io/inode_pool.h" 11 #include "nacl_io/inode_pool.h"
12 #include "nacl_io/mount_node.h" 12 #include "nacl_io/mount_node.h"
13 #include "nacl_io/path.h" 13 #include "nacl_io/path.h"
14 #include "utils/macros.h" 14 #include "sdk_util/macros.h"
15 #include "utils/ref_object.h" 15 #include "sdk_util/ref_object.h"
16 16
17 class MountNode; 17 class MountNode;
18 class PepperInterface; 18 class PepperInterface;
19 19
20 typedef std::map<std::string, std::string> StringMap_t; 20 typedef std::map<std::string, std::string> StringMap_t;
21 21
22 22
23 class Mount : public RefObject { 23 class Mount : public RefObject {
24 protected: 24 protected:
25 // The protected functions are only used internally and will not 25 // The protected functions are only used internally and will not
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) { 87 Mount* Mount::Create(int dev, StringMap_t& args, PepperInterface* ppapi) {
88 Mount* mnt = new M(); 88 Mount* mnt = new M();
89 if (mnt->Init(dev, args, ppapi) == false) { 89 if (mnt->Init(dev, args, ppapi) == false) {
90 delete mnt; 90 delete mnt;
91 return NULL; 91 return NULL;
92 } 92 }
93 return mnt; 93 return mnt;
94 } 94 }
95 95
96 #endif // LIBRARIES_NACL_IO_MOUNT_H_ 96 #endif // LIBRARIES_NACL_IO_MOUNT_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | native_client_sdk/src/libraries/nacl_io/mount.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698