| 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_io/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 namespace nacl_io { | 9 namespace nacl_io { |
| 10 | 10 |
| 11 ScopedResource::ScopedResource(PepperInterface* ppapi, PP_Resource resource) | 11 ScopedResource::ScopedResource(PepperInterface* ppapi, PP_Resource resource) |
| 12 : ppapi_(ppapi), | 12 : ppapi_(ppapi), |
| 13 resource_(resource) { | 13 resource_(resource) { |
| 14 } | 14 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 case PP_ERROR_NO_USER_GESTURE: return EPERM; | 49 case PP_ERROR_NO_USER_GESTURE: return EPERM; |
| 50 case PP_ERROR_CONTEXT_LOST: return EPERM; | 50 case PP_ERROR_CONTEXT_LOST: return EPERM; |
| 51 case PP_ERROR_NO_MESSAGE_LOOP: return EPERM; | 51 case PP_ERROR_NO_MESSAGE_LOOP: return EPERM; |
| 52 case PP_ERROR_WRONG_THREAD: return EPERM; | 52 case PP_ERROR_WRONG_THREAD: return EPERM; |
| 53 } | 53 } |
| 54 | 54 |
| 55 return EINVAL; | 55 return EINVAL; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace nacl_io | 58 } // namespace nacl_io |
| OLD | NEW |