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

Unified Diff: native_client_sdk/src/libraries/nacl_io/typed_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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/typed_mount_factory.h
diff --git a/native_client_sdk/src/libraries/nacl_io/typed_mount_factory.h b/native_client_sdk/src/libraries/nacl_io/typed_mount_factory.h
index c859b0bb469cce4cf9b0324222f83f08140fa74d..84ec60525f12352b79a4816f01b4a8f43a544280 100644
--- a/native_client_sdk/src/libraries/nacl_io/typed_mount_factory.h
+++ b/native_client_sdk/src/libraries/nacl_io/typed_mount_factory.h
@@ -8,14 +8,16 @@
#include "nacl_io/mount.h"
#include "nacl_io/mount_factory.h"
+namespace nacl_io {
+
template <typename T>
class TypedMountFactory : public MountFactory {
public:
virtual Error CreateMount(int dev,
StringMap_t& args,
PepperInterface* ppapi,
- ScopedRef<Mount>* out_mount) {
- ScopedRef<T> mnt(new T());
+ ScopedMount* out_mount) {
+ sdk_util::ScopedRef<T> mnt(new T());
Error error = mnt->Init(dev, args, ppapi);
if (error)
return error;
@@ -25,5 +27,7 @@ class TypedMountFactory : public MountFactory {
}
};
+} // namespace nacl_io
+
#endif // LIBRARIES_NACL_IO_TYPED_MOUNT_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698