From d1dea5daa1c8a8fcf0bd81ec473e78a69655fa65 Mon Sep 17 00:00:00 2001 From: "nhiroki@chromium.org" Date: Thu, 9 Jan 2014 07:45:29 +0000 Subject: PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation Current PPB_FileRef.MakeDirectory returns PP_OK if a directory exists on the given path. This makes it difficult to create POSIX compatible API on top of PPAPI. This change introduces new PPB_FileRef.MakeDirectory as dev channel API. That makes a new directory according to the given PP_MakeDirectoryFlags values. The flags provide exclusive operation option. If exclusive flag is specified and a directory exists on the given path, the function fails and returns PP_ERROR_FILEEXISTS. BUG=314879 TEST=browser_tests Review URL: https://codereview.chromium.org/113363004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243802 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/thunk/thunk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ppapi/thunk/thunk.h') diff --git a/ppapi/thunk/thunk.h b/ppapi/thunk/thunk.h index 86a328f..a85ce77 100644 --- a/ppapi/thunk/thunk.h +++ b/ppapi/thunk/thunk.h @@ -25,6 +25,7 @@ #include "ppapi/thunk/interfaces_ppb_private_flash.h" #include "ppapi/thunk/interfaces_ppb_public_stable.h" #include "ppapi/thunk/interfaces_ppb_public_dev.h" +#include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" #undef UNPROXIED_IFACE #undef PROXIED_IFACE -- cgit v1.1