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

Unified Diff: webkit/fileapi/mock_file_system_options.cc

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/mock_file_system_options.cc
diff --git a/webkit/fileapi/mock_file_system_options.cc b/webkit/fileapi/mock_file_system_options.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9cc4cc88a7daff2861503af2b359767f5b449123
--- /dev/null
+++ b/webkit/fileapi/mock_file_system_options.cc
@@ -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.
+
+#include "webkit/fileapi/mock_file_system_options.h"
+
+namespace fileapi {
+
+FileSystemOptions CreateIncognitoFileSystemOptions() {
+ return FileSystemOptions(FileSystemOptions::PROFILE_MODE_INCOGNITO,
+ std::vector<std::string>());
+};
+
+FileSystemOptions CreateAllowFileAccessOptions() {
+ std::vector<std::string> additional_allowed_schemes;
+ additional_allowed_schemes.push_back("file");
+ return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL,
+ additional_allowed_schemes);
+};
+
+FileSystemOptions CreateDisallowFileAccessOptions() {
+ std::vector<std::string> additional_allowed_schemes;
+ return FileSystemOptions(FileSystemOptions::PROFILE_MODE_NORMAL,
+ additional_allowed_schemes);
+};
+
+} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698