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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/pepper_interface.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/pepper_interface.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.cc b/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.cc
deleted file mode 100644
index 51dff4e53a9a36719302833f35e38e50b2a9b1bd..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.cc
+++ /dev/null
@@ -1,55 +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/pepper_interface.h"
-#include <errno.h>
-#include <ppapi/c/pp_errors.h>
-
-ScopedResource::ScopedResource(PepperInterface* ppapi, PP_Resource resource)
- : ppapi_(ppapi),
- resource_(resource) {
-}
-
-ScopedResource::~ScopedResource() {
- if (resource_)
- ppapi_->ReleaseResource(resource_);
-}
-
-PP_Resource ScopedResource::Release() {
- PP_Resource result = resource_;
- resource_ = 0;
- return result;
-}
-
-int PPErrorToErrno(int32_t err) {
- switch (err) {
- case PP_OK: return 0;
- case PP_OK_COMPLETIONPENDING: return 0;
- case PP_ERROR_FAILED: return EPERM;
- case PP_ERROR_ABORTED: return EPERM;
- case PP_ERROR_BADARGUMENT: return EINVAL;
- case PP_ERROR_BADRESOURCE: return EBADF;
- case PP_ERROR_NOINTERFACE: return ENOSYS;
- case PP_ERROR_NOACCESS: return EACCES;
- case PP_ERROR_NOMEMORY: return ENOMEM;
- case PP_ERROR_NOSPACE: return ENOSPC;
- case PP_ERROR_NOQUOTA: return ENOSPC;
- case PP_ERROR_INPROGRESS: return EBUSY;
- case PP_ERROR_NOTSUPPORTED: return ENOSYS;
- case PP_ERROR_BLOCKS_MAIN_THREAD: return EPERM;
- case PP_ERROR_FILENOTFOUND: return ENOENT;
- case PP_ERROR_FILEEXISTS: return EEXIST;
- case PP_ERROR_FILETOOBIG: return EFBIG;
- case PP_ERROR_FILECHANGED: return EINVAL;
- case PP_ERROR_TIMEDOUT: return EBUSY;
- case PP_ERROR_USERCANCEL: return EPERM;
- case PP_ERROR_NO_USER_GESTURE: return EPERM;
- case PP_ERROR_CONTEXT_LOST: return EPERM;
- case PP_ERROR_NO_MESSAGE_LOOP: return EPERM;
- case PP_ERROR_WRONG_THREAD: return EPERM;
- }
-
- return EINVAL;
-}
-

Powered by Google App Engine
This is Rietveld 408576698