Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: webkit/fileapi/file_permission_policy.cc

Issue 11804005: Cleanup file permission check code in FileAPIMessageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros+native-local perm fix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « webkit/fileapi/file_permission_policy.h ('k') | webkit/fileapi/file_system_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698