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

Unified Diff: webkit/fileapi/file_system_operation_context.h

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Addressed comments. Created 8 years, 5 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
Index: webkit/fileapi/file_system_operation_context.h
diff --git a/webkit/fileapi/file_system_operation_context.h b/webkit/fileapi/file_system_operation_context.h
index 7b265391ed242b5a575c8bc0e3a57b3fe48377b6..3a8cc3931b0c2afbf6e3026b1a76d433ab554ac2 100644
--- a/webkit/fileapi/file_system_operation_context.h
+++ b/webkit/fileapi/file_system_operation_context.h
@@ -12,6 +12,11 @@
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_types.h"
+#include "webkit/fileapi/media/media_file_system_config.h"
+
+#if defined(SUPPORT_MEDIA_FILESYSTEM)
+#include "webkit/fileapi/media/media_device_interface_impl.h"
+#endif
namespace base {
class SequencedTaskRunner;
@@ -35,6 +40,16 @@ class FILEAPI_EXPORT_PRIVATE FileSystemOperationContext {
}
int64 allowed_bytes_growth() const { return allowed_bytes_growth_; }
+#if defined(SUPPORT_MEDIA_FILESYSTEM)
+ void set_media_device(MediaDeviceInterfaceImpl* media_device) {
+ media_device_ = media_device;
+ }
+
+ MediaDeviceInterfaceImpl* media_device() const {
+ return media_device_.get();
+ }
+#endif
+
base::SequencedTaskRunner* file_task_runner() const;
void set_media_path_filter(MediaPathFilter* media_path_filter) {
@@ -50,6 +65,11 @@ class FILEAPI_EXPORT_PRIVATE FileSystemOperationContext {
int64 allowed_bytes_growth_;
MediaPathFilter* media_path_filter_;
+
+#if defined(SUPPORT_MEDIA_FILESYSTEM)
+ // Store the current media device.
+ scoped_refptr<MediaDeviceInterfaceImpl> media_device_;
+#endif
};
} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698