PPAPI: Add C++ wrapper for MessageHandler stuff.
[chromium-blink-merge.git] / storage / common / fileapi / file_system_mount_option.h
blobdc5cdc4c29210a5fa1081abad347663f9c5aadcd
1 // Copyright 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_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_
6 #define STORAGE_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_
8 namespace storage {
10 // Option for specifying if disk sync operation is wanted after copying.
11 enum CopySyncOption {
12 COPY_SYNC_OPTION_NO_SYNC,
13 COPY_SYNC_OPTION_SYNC,
16 // Conveys options for a mounted file systems.
17 class FileSystemMountOption {
18 public:
19 // Constructs with the default options.
20 FileSystemMountOption()
21 : copy_sync_option_(COPY_SYNC_OPTION_NO_SYNC) {}
23 // Constructs with the specified component.
24 explicit FileSystemMountOption(CopySyncOption copy_sync_option)
25 : copy_sync_option_(copy_sync_option) {}
27 CopySyncOption copy_sync_option() const {
28 return copy_sync_option_;
31 private:
32 CopySyncOption copy_sync_option_;
35 } // namespace storage
37 #endif // STORAGE_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_