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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_handle.cc

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/kernel_handle.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc b/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
index 12b83a3dcdb23e66c5d1ace1c517c8959a0aa933..b68f41f45e4e4b15c8a739ee27deabb3bfe37bfc 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_handle.cc
@@ -14,6 +14,8 @@
#include "sdk_util/auto_lock.h"
+namespace nacl_io {
+
// It is only legal to construct a handle while the kernel lock is held.
KernelHandle::KernelHandle()
: mount_(NULL), node_(NULL), offs_(0) {}
@@ -98,5 +100,4 @@ Error KernelHandle::GetDents(struct dirent* pdir, size_t nbytes, int* cnt) {
return error;
}
-const ScopedRef<MountNode>& KernelHandle::node() { return node_; }
-const ScopedRef<Mount>& KernelHandle::mount() { return mount_; }
+} // namespace nacl_io
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_handle.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698