We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / storage / browser / fileapi / file_permission_policy.h
blob8580954759c3574ad9c63f4ffd8d70e5aedf043a
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.
5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_
8 #include "storage/browser/storage_browser_export.h"
10 namespace storage {
12 enum FilePermissionPolicy {
13 // Any access should be always denied.
14 FILE_PERMISSION_ALWAYS_DENY = 0x0,
16 // Access is sandboxed, no extra permission check is necessary.
17 FILE_PERMISSION_SANDBOX = 1 << 0,
19 // Access should be restricted to read-only.
20 FILE_PERMISSION_READ_ONLY = 1 << 1,
22 // Access should be examined by per-file permission policy.
23 FILE_PERMISSION_USE_FILE_PERMISSION = 1 << 2,
26 } // namespace storage
28 #endif // STORAGE_BROWSER_FILEAPI_FILE_PERMISSION_POLICY_H_