OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "webkit/storage/webkit_storage_export.h" | 11 #include "webkit/browser/webkit_storage_browser_export.h" |
12 | 12 |
13 namespace fileapi { | 13 namespace fileapi { |
14 | 14 |
15 // Provides runtime options that may change FileSystem API behavior. | 15 // Provides runtime options that may change FileSystem API behavior. |
16 // This object is copyable. | 16 // This object is copyable. |
17 class WEBKIT_STORAGE_EXPORT FileSystemOptions { | 17 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemOptions { |
18 public: | 18 public: |
19 enum ProfileMode { | 19 enum ProfileMode { |
20 PROFILE_MODE_NORMAL = 0, | 20 PROFILE_MODE_NORMAL = 0, |
21 PROFILE_MODE_INCOGNITO | 21 PROFILE_MODE_INCOGNITO |
22 }; | 22 }; |
23 | 23 |
24 // |profile_mode| specifies if the profile (for this filesystem) | 24 // |profile_mode| specifies if the profile (for this filesystem) |
25 // is running in incognito mode (PROFILE_MODE_INCOGNITO) or no | 25 // is running in incognito mode (PROFILE_MODE_INCOGNITO) or no |
26 // (PROFILE_MODE_NORMAL). | 26 // (PROFILE_MODE_NORMAL). |
27 // |additional_allowed_schemes| specifies schemes that are allowed | 27 // |additional_allowed_schemes| specifies schemes that are allowed |
(...skipping 16 matching lines...) Expand all Loading... |
44 } | 44 } |
45 | 45 |
46 private: | 46 private: |
47 const ProfileMode profile_mode_; | 47 const ProfileMode profile_mode_; |
48 const std::vector<std::string> additional_allowed_schemes_; | 48 const std::vector<std::string> additional_allowed_schemes_; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace fileapi | 51 } // namespace fileapi |
52 | 52 |
53 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ | 53 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPTIONS_H_ |
OLD | NEW |