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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount.cc

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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_mounts/mount.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount.cc b/native_client_sdk/src/libraries/nacl_mounts/mount.cc
deleted file mode 100644
index 07be9b3961e91e7352cb3596712f7362789cff32..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_mounts/mount.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#include "nacl_mounts/mount.h"
-
-#include <errno.h>
-#include <fcntl.h>
-#include <string>
-
-#include "nacl_mounts/mount_node.h"
-#include "nacl_mounts/mount_node_dir.h"
-#include "nacl_mounts/mount_node_mem.h"
-#include "nacl_mounts/osstat.h"
-#include "nacl_mounts/path.h"
-#include "utils/auto_lock.h"
-#include "utils/ref_object.h"
-
-#if defined(WIN32)
-#include <windows.h>
-#endif
-
-Mount::Mount()
- : dev_(0) {
-}
-
-Mount::~Mount() {}
-
-bool Mount::Init(int dev, StringMap_t& args, PepperInterface* ppapi) {
- dev_ = dev;
- ppapi_ = ppapi;
- return true;
-}
-
-void Mount::Destroy() {}
-
-void Mount::AcquireNode(MountNode* node) {
- AutoLock lock(&lock_);
- node->Acquire();
-}
-
-void Mount::ReleaseNode(MountNode* node) {
- AutoLock lock(&lock_);
- node->Release();
-}
-
-int Mount::OpenModeToPermission(int mode) {
- int out;
- switch (mode & 3) {
- case O_RDONLY: out = S_IREAD;
- case O_WRONLY: out = S_IWRITE;
- case O_RDWR: out = S_IREAD | S_IWRITE;
- }
- return out;
-}
-
-
-void Mount::OnNodeCreated(MountNode* node) {
- node->stat_.st_ino = inode_pool_.Acquire();
- node->stat_.st_dev = dev_;
-}
-
-void Mount::OnNodeDestroyed(MountNode* node) {
- if (node->stat_.st_ino) inode_pool_.Release(node->stat_.st_ino);
-}
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/mount.h ('k') | native_client_sdk/src/libraries/nacl_mounts/mount_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698