| Index: webkit/fileapi/file_system_options.h
|
| diff --git a/webkit/fileapi/file_system_options.h b/webkit/fileapi/file_system_options.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..955be93fdd3d9903d98cc5caaae294e14bb923ea
|
| --- /dev/null
|
| +++ b/webkit/fileapi/file_system_options.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright (c) 2011 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_SYSTEM_OPTIONS_H_
|
| +#define WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_
|
| +
|
| +namespace fileapi {
|
| +
|
| +// An interface to provide runtime options that may change FileSystem API
|
| +// behavior.
|
| +class FileSystemOptions {
|
| + public:
|
| + virtual ~FileSystemOptions() {}
|
| +
|
| + // Returns true if it is running in the incognito mode.
|
| + virtual bool is_incognito() const = 0;
|
| +
|
| + // Returns true if it is configured to allow file access from files
|
| + // (e.g. the --allow-file-access-from-files option is given or it is
|
| + // for testing).
|
| + virtual bool allow_file_access_from_files() const = 0;
|
| +};
|
| +
|
| +} // namespace fileapi
|
| +
|
| +#endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPTIONS_H_
|
|
|