| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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_SYSTEM_OPTIONS_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_ |
| 7 |
| 8 namespace fileapi { |
| 9 |
| 10 // An interface to provide runtime options that may change FileSystem API |
| 11 // behavior. |
| 12 class FileSystemOptions { |
| 13 public: |
| 14 virtual ~FileSystemOptions() {} |
| 15 |
| 16 // Returns true if it is running in the incognito mode. |
| 17 virtual bool is_incognito() const = 0; |
| 18 |
| 19 // Returns true if it is configured to allow file access from files |
| 20 // (e.g. the --allow-file-access-from-files option is given or it is |
| 21 // for testing). |
| 22 virtual bool allow_file_access_from_files() const = 0; |
| 23 }; |
| 24 |
| 25 } // namespace fileapi |
| 26 |
| 27 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_ |
| OLD | NEW |