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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 5
6 #include "nacl_mounts/mount_node_html5fs.h" 6 #include "nacl_io/mount_node_html5fs.h"
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <ppapi/c/pp_completion_callback.h> 10 #include <ppapi/c/pp_completion_callback.h>
11 #include <ppapi/c/pp_errors.h> 11 #include <ppapi/c/pp_errors.h>
12 #include <ppapi/c/pp_file_info.h> 12 #include <ppapi/c/pp_file_info.h>
13 #include <ppapi/c/ppb_file_io.h> 13 #include <ppapi/c/ppb_file_io.h>
14 #include <string.h> 14 #include <string.h>
15 #include <vector> 15 #include <vector>
16 #include "nacl_mounts/mount.h" 16 #include "nacl_io/mount.h"
17 #include "nacl_mounts/osdirent.h" 17 #include "nacl_io/osdirent.h"
18 #include "nacl_mounts/pepper_interface.h" 18 #include "nacl_io/pepper_interface.h"
19 #include "utils/auto_lock.h" 19 #include "utils/auto_lock.h"
20 20
21 namespace { 21 namespace {
22 22
23 int32_t ModeToOpenFlags(int mode) { 23 int32_t ModeToOpenFlags(int mode) {
24 int32_t open_flags = 0; 24 int32_t open_flags = 0;
25 25
26 switch (mode & 3) { 26 switch (mode & 3) {
27 default: 27 default:
28 case O_RDONLY: 28 case O_RDONLY:
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 if (fileio_resource_) { 245 if (fileio_resource_) {
246 mount_->ppapi()->GetFileIoInterface()->Close(fileio_resource_); 246 mount_->ppapi()->GetFileIoInterface()->Close(fileio_resource_);
247 mount_->ppapi()->ReleaseResource(fileio_resource_); 247 mount_->ppapi()->ReleaseResource(fileio_resource_);
248 } 248 }
249 249
250 mount_->ppapi()->ReleaseResource(fileref_resource_); 250 mount_->ppapi()->ReleaseResource(fileref_resource_);
251 fileio_resource_ = 0; 251 fileio_resource_ = 0;
252 fileref_resource_ = 0; 252 fileref_resource_ = 0;
253 MountNode::Destroy(); 253 MountNode::Destroy();
254 } 254 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node_html5fs.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_mem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698