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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_factory.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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 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_MOUNT_FACTORY_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_FACTORY_H_
6 #define LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "nacl_io/error.h" 11 #include "nacl_io/error.h"
12 #include "sdk_util/scoped_ref.h" 12 #include "sdk_util/scoped_ref.h"
13 13
14 namespace nacl_io {
15
14 class PepperInterface; 16 class PepperInterface;
15 class Mount; 17 class Mount;
16 18
17 typedef std::map<std::string, std::string> StringMap_t; 19 typedef std::map<std::string, std::string> StringMap_t;
18 20
19 class MountFactory { 21 class MountFactory {
20 public: 22 public:
21 virtual ~MountFactory() {} 23 virtual ~MountFactory() {}
22 virtual Error CreateMount(int dev, 24 virtual Error CreateMount(int dev,
23 StringMap_t& args, 25 StringMap_t& args,
24 PepperInterface* ppapi, 26 PepperInterface* ppapi,
25 ScopedRef<Mount>* out_mount) = 0; 27 sdk_util::ScopedRef<Mount>* out_mount) = 0;
26 }; 28 };
27 29
30 } // namespace nacl_io
31
28 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_ 32 #endif // LIBRARIES_NACL_IO_MOUNT_FACTORY_H_
29 33
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_dev.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_html5fs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698