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

Side by Side Diff: native_client_sdk/src/doc/devguide/coding/file-io.rst

Issue 131403004: [Retry] PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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 .. _devguide-coding-fileio: 1 .. _devguide-coding-fileio:
2 2
3 ######## 3 ########
4 File I/O 4 File I/O
5 ######## 5 ########
6 6
7 .. contents:: 7 .. contents::
8 :local: 8 :local:
9 :backlinks: none 9 :backlinks: none
10 :depth: 2 10 :depth: 2
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 if (!file_system_ready_) { 541 if (!file_system_ready_) {
542 ShowErrorMessage("File system is not open", PP_ERROR_FAILED); 542 ShowErrorMessage("File system is not open", PP_ERROR_FAILED);
543 return; 543 return;
544 } 544 }
545 pp::FileRef ref(file_system_, dir_name.c_str()); 545 pp::FileRef ref(file_system_, dir_name.c_str());
546 546
547 Then the ``pp::FileRef::MakeDirectory`` function is called. 547 Then the ``pp::FileRef::MakeDirectory`` function is called.
548 548
549 .. naclcode:: 549 .. naclcode::
550 550
551 int32_t result = ref.MakeDirectory(pp::BlockUntilComplete()); 551 int32_t result = ref.MakeDirectory(
552 PP_MAKEDIRECTORYFLAG_NONE, pp::BlockUntilComplete());
552 if (result != PP_OK) { 553 if (result != PP_OK) {
553 ShowErrorMessage("Make directory failed", result); 554 ShowErrorMessage("Make directory failed", result);
554 return; 555 return;
555 } 556 }
556 ShowStatusMessage("Make directory success"); 557 ShowStatusMessage("Make directory success");
OLDNEW
« no previous file with comments | « content/renderer/pepper/plugin_module.cc ('k') | native_client_sdk/src/examples/api/file_io/file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698