Fix Win8 metro startup crash from window switcher button
[chromium-blink-merge.git] / webkit / fileapi / file_permission_policy.h
blobdf8e63efbb3b47a105f30f4347d78bdaa98f0e1d
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 WEBKIT_FILEAPI_FILE_PERMISSION_POLICY_H_
6 #define WEBKIT_FILEAPI_FILE_PERMISSION_POLICY_H_
8 #include "webkit/storage/webkit_storage_export.h"
10 namespace fileapi {
12 WEBKIT_STORAGE_EXPORT extern const int kReadFilePermissions;
13 WEBKIT_STORAGE_EXPORT extern const int kWriteFilePermissions;
14 WEBKIT_STORAGE_EXPORT extern const int kCreateFilePermissions;
15 WEBKIT_STORAGE_EXPORT extern const int kOpenFilePermissions;
17 enum FilePermissionPolicy {
18 // Any access should be always denied.
19 FILE_PERMISSION_ALWAYS_DENY,
21 // Any access should be always allowed. (This should be used only for
22 // access to sandbox directories.)
23 FILE_PERMISSION_ALWAYS_ALLOW,
25 // Access should be examined by per-file permission policy.
26 FILE_PERMISSION_USE_FILE_PERMISSION,
28 // Access should be examined by per-filesystem permission policy.
29 FILE_PERMISSION_USE_FILESYSTEM_PERMISSION,
32 } // namespace fileapi
34 #endif // WEBKIT_FILEAPI_FILE_PERMISSION_POLICY_H_