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/proxy/interface_list.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ppapi/proxy/interface_list.cc') diff --git a/ppapi/proxy/interface_list.cc b/ppapi/proxy/interface_list.cc index c734710..c1ff168 100644 --- a/ppapi/proxy/interface_list.cc +++ b/ppapi/proxy/interface_list.cc @@ -192,12 +192,8 @@ InterfaceList::InterfaceList() { #endif // !defined(OS_NACL) } { - // TODO(teravest): These lines should be uncommented when a dev channel - // interface is added. They're commented right now because they cause an - // unused variable warning. - // - // Permission current_required_permission = PERMISSION_DEV_CHANNEL; - // #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" + Permission current_required_permission = PERMISSION_DEV_CHANNEL; + #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" } #undef PROXIED_API -- cgit v1.1