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

Unified Diff: webkit/fileapi/file_system_options.h

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 9 years 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698