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

Unified Diff: webkit/fileapi/test_mount_point_provider.h

Issue 14352004: Split Media-related code from IsolatedMountPointProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months 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
« no previous file with comments | « webkit/fileapi/media/native_media_file_util.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/test_mount_point_provider.h
diff --git a/webkit/fileapi/test_mount_point_provider.h b/webkit/fileapi/test_mount_point_provider.h
index 375684e1982e1c362496093caa95a4ffdee0d691..8a71b77a86f9193bb69b523c233a8cfc0e4472b0 100644
--- a/webkit/fileapi/test_mount_point_provider.h
+++ b/webkit/fileapi/test_mount_point_provider.h
@@ -76,6 +76,13 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider
const UpdateObserverList* GetUpdateObservers(FileSystemType type) const;
+ // For CopyOrMoveFileValidatorFactory testing. Once it's set to true
+ // GetCopyOrMoveFileValidatorFactory will start returning security
+ // error if validator is not initialized.
+ void set_require_copy_or_move_validator(bool flag) {
+ require_copy_or_move_validator_ = flag;
+ }
+
private:
class QuotaUtil;
@@ -84,6 +91,12 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider
scoped_ptr<AsyncFileUtilAdapter> local_file_util_;
scoped_ptr<QuotaUtil> quota_util_;
UpdateObserverList observers_;
+
+ bool require_copy_or_move_validator_;
+ scoped_ptr<CopyOrMoveFileValidatorFactory>
+ copy_or_move_file_validator_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestMountPointProvider);
};
} // namespace fileapi
« no previous file with comments | « webkit/fileapi/media/native_media_file_util.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698