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

Side by Side Diff: storage/browser/fileapi/file_permission_policy.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
« no previous file with comments | « storage/browser/fileapi/file_observers.h ('k') | storage/browser/fileapi/file_stream_writer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_
7 7
8 #include "webkit/browser/webkit_storage_browser_export.h" 8 #include "storage/common/storage_export.h"
9 9
10 namespace fileapi { 10 namespace storage {
11 11
12 enum FilePermissionPolicy { 12 enum FilePermissionPolicy {
13 // Any access should be always denied. 13 // Any access should be always denied.
14 FILE_PERMISSION_ALWAYS_DENY = 0x0, 14 FILE_PERMISSION_ALWAYS_DENY = 0x0,
15 15
16 // Access is sandboxed, no extra permission check is necessary. 16 // Access is sandboxed, no extra permission check is necessary.
17 FILE_PERMISSION_SANDBOX = 1 << 0, 17 FILE_PERMISSION_SANDBOX = 1 << 0,
18 18
19 // Access should be restricted to read-only. 19 // Access should be restricted to read-only.
20 FILE_PERMISSION_READ_ONLY = 1 << 1, 20 FILE_PERMISSION_READ_ONLY = 1 << 1,
21 21
22 // Access should be examined by per-file permission policy. 22 // Access should be examined by per-file permission policy.
23 FILE_PERMISSION_USE_FILE_PERMISSION = 1 << 2, 23 FILE_PERMISSION_USE_FILE_PERMISSION = 1 << 2,
24 }; 24 };
25 25
26 } // namespace fileapi 26 } // namespace storage
27 27
28 #endif // WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_ 28 #endif // WEBKIT_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_observers.h ('k') | storage/browser/fileapi/file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698