summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_snapshot_policy.h
blob: 7386684a83c78fdb6dfd36cdd7bb164cc725b803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_
#define WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_

namespace fileapi {

// A policy flag for CreateSnapshotFile.
enum SnapshotFilePolicy {
  kSnapshotFileUnknown,

  // The implementation just uses the local file as the snapshot file.
  // The FileAPI backend does nothing on the returned file.
  kSnapshotFileLocal,

  // The implementation returns a temporary file as the snapshot file.
  // The FileAPI backend takes care of the lifetime of the returned file
  // and will delete when the last reference of the file is dropped.
  kSnapshotFileTemporary,
};

}  // namespace fileapi

#endif  // WEBKIT_FILEAPI_FILE_SNAPSHOT_POLICY_H_