| 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 */ | |
| 5 | 4 |
| 6 #include "nacl_io/mount_html5fs.h" | 5 #include "nacl_io/mount_html5fs.h" |
| 7 | 6 |
| 8 #include <errno.h> | 7 #include <errno.h> |
| 9 #include <fcntl.h> | 8 #include <fcntl.h> |
| 10 #include <ppapi/c/pp_completion_callback.h> | 9 #include <ppapi/c/pp_completion_callback.h> |
| 11 #include <ppapi/c/pp_errors.h> | 10 #include <ppapi/c/pp_errors.h> |
| 12 #include <stdlib.h> | 11 #include <stdlib.h> |
| 13 #include <string.h> | 12 #include <string.h> |
| 14 #include <algorithm> | 13 #include <algorithm> |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 181 |
| 183 void MountHtml5Fs::FilesystemOpenCallback(int32_t result) { | 182 void MountHtml5Fs::FilesystemOpenCallback(int32_t result) { |
| 184 AUTO_LOCK(filesysem_open_lock_); | 183 AUTO_LOCK(filesysem_open_lock_); |
| 185 filesystem_open_has_result_ = true; | 184 filesystem_open_has_result_ = true; |
| 186 filesystem_open_error_ = PPErrorToErrno(result); | 185 filesystem_open_error_ = PPErrorToErrno(result); |
| 187 pthread_cond_signal(&filesystem_open_cond_); | 186 pthread_cond_signal(&filesystem_open_cond_); |
| 188 } | 187 } |
| 189 | 188 |
| 190 } // namespace nacl_io | 189 } // namespace nacl_io |
| 191 | 190 |
| OLD | NEW |