| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "webkit/browser/fileapi/file_permission_policy.h" | 5 #include "webkit/browser/fileapi/file_permission_policy.h" |
| 6 | 6 |
| 7 #include "base/platform_file.h" | 7 #include "base/platform_file.h" |
| 8 | 8 |
| 9 namespace fileapi { | 9 namespace fileapi { |
| 10 | 10 |
| 11 const int kReadFilePermissions = base::PLATFORM_FILE_OPEN | | 11 const int kReadFilePermissions = base::PLATFORM_FILE_OPEN | |
| 12 base::PLATFORM_FILE_READ | | 12 base::PLATFORM_FILE_READ | |
| 13 base::PLATFORM_FILE_EXCLUSIVE_READ | | 13 base::PLATFORM_FILE_EXCLUSIVE_READ | |
| 14 base::PLATFORM_FILE_ASYNC; | 14 base::PLATFORM_FILE_ASYNC; |
| 15 | 15 |
| 16 const int kWriteFilePermissions = base::PLATFORM_FILE_OPEN | | 16 const int kWriteFilePermissions = base::PLATFORM_FILE_OPEN | |
| 17 base::PLATFORM_FILE_WRITE | | 17 base::PLATFORM_FILE_WRITE | |
| 18 base::PLATFORM_FILE_EXCLUSIVE_WRITE | | 18 base::PLATFORM_FILE_EXCLUSIVE_WRITE | |
| 19 base::PLATFORM_FILE_ASYNC | | 19 base::PLATFORM_FILE_ASYNC | |
| 20 base::PLATFORM_FILE_WRITE_ATTRIBUTES; | 20 base::PLATFORM_FILE_WRITE_ATTRIBUTES; |
| 21 | 21 |
| 22 const int kCreateFilePermissions = base::PLATFORM_FILE_CREATE; | 22 const int kCreateFilePermissions = base::PLATFORM_FILE_CREATE; |
| 23 | 23 |
| 24 const int kOpenFilePermissions = base::PLATFORM_FILE_CREATE | | 24 const int kOpenPepperFilePermissions = base::PLATFORM_FILE_OPEN | |
| 25 base::PLATFORM_FILE_OPEN_ALWAYS | | 25 base::PLATFORM_FILE_CREATE | |
| 26 base::PLATFORM_FILE_CREATE_ALWAYS | | 26 base::PLATFORM_FILE_OPEN_ALWAYS | |
| 27 base::PLATFORM_FILE_OPEN_TRUNCATED | | 27 base::PLATFORM_FILE_CREATE_ALWAYS | |
| 28 base::PLATFORM_FILE_WRITE | | 28 base::PLATFORM_FILE_OPEN_TRUNCATED | |
| 29 base::PLATFORM_FILE_EXCLUSIVE_WRITE | | 29 base::PLATFORM_FILE_READ | |
| 30 base::PLATFORM_FILE_DELETE_ON_CLOSE | | 30 base::PLATFORM_FILE_WRITE | |
| 31 base::PLATFORM_FILE_WRITE_ATTRIBUTES; | 31 base::PLATFORM_FILE_APPEND | |
| 32 base::PLATFORM_FILE_EXCLUSIVE_WRITE | |
| 33 base::PLATFORM_FILE_DELETE_ON_CLOSE | |
| 34 base::PLATFORM_FILE_WRITE_ATTRIBUTES; |
| 32 | 35 |
| 33 | 36 |
| 34 } // namespace fileapi | 37 } // namespace fileapi |
| OLD | NEW |