diff options
author | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 07:45:29 +0000 |
---|---|---|
committer | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 07:45:29 +0000 |
commit | d1dea5daa1c8a8fcf0bd81ec473e78a69655fa65 (patch) | |
tree | dfd21bd5eed4d1cd5f572237e819c1d2e9a76022 /ppapi/proxy/interface_list.cc | |
parent | 600dc3d30376f58f5b3960fc04ac407c39e9daa1 (diff) | |
download | chromium_src-d1dea5daa1c8a8fcf0bd81ec473e78a69655fa65.zip chromium_src-d1dea5daa1c8a8fcf0bd81ec473e78a69655fa65.tar.gz chromium_src-d1dea5daa1c8a8fcf0bd81ec473e78a69655fa65.tar.bz2 |
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
Diffstat (limited to 'ppapi/proxy/interface_list.cc')
-rw-r--r-- | ppapi/proxy/interface_list.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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 |