Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / file_system_provider / observer.h
index d2147e6..3f6347b 100644 (file)
@@ -7,21 +7,29 @@
 
 #include <string>
 
+#include "base/files/file.h"
+
 namespace chromeos {
 namespace file_system_provider {
 
-class ProvidedFileSystem;
+class ProvidedFileSystemInfo;
 
 // Observes file_system_provider::Service for mounting and unmounting events.
 class Observer {
  public:
-  // Called when a provided |file_system| is registered successfully.
-  virtual void OnProvidedFileSystemRegistered(
-      const ProvidedFileSystem& file_system) = 0;
-
-  // Called when a provided |file_system| is unregistered successfully.
-  virtual void OnProvidedFileSystemUnregistered(
-      const ProvidedFileSystem& file_system) = 0;
+  // Called when a file system mounting has been invoked. For success, the
+  // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
+  // error code.
+  virtual void OnProvidedFileSystemMount(
+      const ProvidedFileSystemInfo& file_system_info,
+      base::File::Error error) = 0;
+
+  // Called when a file system unmounting has been invoked. For success, the
+  // |error| argument is set to FILE_OK. Otherwise, |error| contains a specific
+  // error code.
+  virtual void OnProvidedFileSystemUnmount(
+      const ProvidedFileSystemInfo& file_system_info,
+      base::File::Error error) = 0;
 };
 
 }  // namespace file_system_provider