Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: webkit/common/fileapi/file_system_mount_option.h

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/common/fileapi/file_system_info.cc ('k') | webkit/common/fileapi/file_system_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_ 5 #ifndef WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_
6 #define WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_ 6 #define WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_
7 7
8 namespace fileapi { 8 namespace storage {
9 9
10 // Option for specifying if disk sync operation is wanted after copying. 10 // Option for specifying if disk sync operation is wanted after copying.
11 enum CopySyncOption { 11 enum CopySyncOption {
12 COPY_SYNC_OPTION_NO_SYNC, 12 COPY_SYNC_OPTION_NO_SYNC,
13 COPY_SYNC_OPTION_SYNC, 13 COPY_SYNC_OPTION_SYNC,
14 }; 14 };
15 15
16 // Conveys options for a mounted file systems. 16 // Conveys options for a mounted file systems.
17 class FileSystemMountOption { 17 class FileSystemMountOption {
18 public: 18 public:
19 // Constructs with the default options. 19 // Constructs with the default options.
20 FileSystemMountOption() 20 FileSystemMountOption()
21 : copy_sync_option_(COPY_SYNC_OPTION_NO_SYNC) {} 21 : copy_sync_option_(COPY_SYNC_OPTION_NO_SYNC) {}
22 22
23 // Constructs with the specified component. 23 // Constructs with the specified component.
24 explicit FileSystemMountOption(CopySyncOption copy_sync_option) 24 explicit FileSystemMountOption(CopySyncOption copy_sync_option)
25 : copy_sync_option_(copy_sync_option) {} 25 : copy_sync_option_(copy_sync_option) {}
26 26
27 CopySyncOption copy_sync_option() const { 27 CopySyncOption copy_sync_option() const {
28 return copy_sync_option_; 28 return copy_sync_option_;
29 } 29 }
30 30
31 private: 31 private:
32 CopySyncOption copy_sync_option_; 32 CopySyncOption copy_sync_option_;
33 }; 33 };
34 34
35 } // namespace fileapi 35 } // namespace storage
36 36
37 #endif // WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_ 37 #endif // WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_MOUNT_OPTION_H_
OLDNEW
« no previous file with comments | « webkit/common/fileapi/file_system_info.cc ('k') | webkit/common/fileapi/file_system_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698