OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "webkit/fileapi/file_permission_policy.h" | |
6 | |
7 #include "base/platform_file.h" | |
8 | |
9 namespace fileapi { | |
10 | |
11 const int kReadFilePermissions = base::PLATFORM_FILE_OPEN | | |
12 base::PLATFORM_FILE_READ | | |
13 base::PLATFORM_FILE_EXCLUSIVE_READ | | |
14 base::PLATFORM_FILE_ASYNC; | |
15 | |
16 const int kWriteFilePermissions = base::PLATFORM_FILE_OPEN | | |
17 base::PLATFORM_FILE_WRITE | | |
18 base::PLATFORM_FILE_EXCLUSIVE_WRITE | | |
19 base::PLATFORM_FILE_ASYNC | | |
20 base::PLATFORM_FILE_WRITE_ATTRIBUTES; | |
21 | |
22 const int kCreateFilePermissions = base::PLATFORM_FILE_CREATE; | |
23 | |
24 const int kOpenFilePermissions = base::PLATFORM_FILE_CREATE | | |
25 base::PLATFORM_FILE_OPEN_ALWAYS | | |
26 base::PLATFORM_FILE_CREATE_ALWAYS | | |
27 base::PLATFORM_FILE_OPEN_TRUNCATED | | |
28 base::PLATFORM_FILE_WRITE | | |
29 base::PLATFORM_FILE_EXCLUSIVE_WRITE | | |
30 base::PLATFORM_FILE_DELETE_ON_CLOSE | | |
31 base::PLATFORM_FILE_WRITE_ATTRIBUTES; | |
32 | |
33 | |
34 } // namespace fileapi | |
OLD | NEW |