| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 #include "nacl_mounts/pepper_interface.h" | 5 #include "nacl_io/pepper_interface.h" |
| 6 #include <errno.h> | 6 #include <errno.h> |
| 7 #include <ppapi/c/pp_errors.h> | 7 #include <ppapi/c/pp_errors.h> |
| 8 | 8 |
| 9 ScopedResource::ScopedResource(PepperInterface* ppapi, PP_Resource resource) | 9 ScopedResource::ScopedResource(PepperInterface* ppapi, PP_Resource resource) |
| 10 : ppapi_(ppapi), | 10 : ppapi_(ppapi), |
| 11 resource_(resource) { | 11 resource_(resource) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 ScopedResource::~ScopedResource() { | 14 ScopedResource::~ScopedResource() { |
| 15 if (resource_) | 15 if (resource_) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 46 case PP_ERROR_USERCANCEL: return EPERM; | 46 case PP_ERROR_USERCANCEL: return EPERM; |
| 47 case PP_ERROR_NO_USER_GESTURE: return EPERM; | 47 case PP_ERROR_NO_USER_GESTURE: return EPERM; |
| 48 case PP_ERROR_CONTEXT_LOST: return EPERM; | 48 case PP_ERROR_CONTEXT_LOST: return EPERM; |
| 49 case PP_ERROR_NO_MESSAGE_LOOP: return EPERM; | 49 case PP_ERROR_NO_MESSAGE_LOOP: return EPERM; |
| 50 case PP_ERROR_WRONG_THREAD: return EPERM; | 50 case PP_ERROR_WRONG_THREAD: return EPERM; |
| 51 } | 51 } |
| 52 | 52 |
| 53 return EINVAL; | 53 return EINVAL; |
| 54 } | 54 } |
| 55 | 55 |
| OLD | NEW |