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 #ifndef WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_ | |
6 #define WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_ | |
7 | |
8 namespace fileapi { | |
9 | |
10 // A policy flag for CreateSnapshotFile. | |
11 enum SnapshotFilePolicy { | |
12 kSnapshotFileUnknown, | |
13 | |
14 // The implementation just uses the local file as the snapshot file. | |
15 // The FileAPI backend does nothing on the returned file. | |
16 kSnapshotFileLocal, | |
17 | |
18 // The implementation returns a temporary file as the snapshot file. | |
19 // The FileAPI backend takes care of the lifetime of the returned file | |
20 // and will delete when the last reference of the file is dropped. | |
21 kSnapshotFileTemporary, | |
22 }; | |
23 | |
24 } // namespace fileapi | |
25 | |
26 #endif // WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_ | |
OLD | NEW |