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

Unified Diff: chrome/browser/chromeos/file_system_provider/observer.h

Issue 194693002: [fsp] Add requestUnmount() method together with the request manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 9 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: chrome/browser/chromeos/file_system_provider/observer.h
diff --git a/chrome/browser/chromeos/file_system_provider/observer.h b/chrome/browser/chromeos/file_system_provider/observer.h
index 6975dd9fc736af3c4c7b8d456a65529bce3c22b5..03696273df10ad108360b9caff57f9328268c173 100644
--- a/chrome/browser/chromeos/file_system_provider/observer.h
+++ b/chrome/browser/chromeos/file_system_provider/observer.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/files/file.h"
+
namespace chromeos {
namespace file_system_provider {
@@ -14,10 +16,18 @@ class ProvidedFileSystem;
class Observer {
public:
- virtual void OnProvidedFileSystemRegistered(
- const ProvidedFileSystem& file_system) = 0;
- 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 ProvidedFileSystem& file_system,
+ 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 ProvidedFileSystem& file_system,
+ base::File::Error error) = 0;
};
} // namespace file_system_provider

Powered by Google App Engine
This is Rietveld 408576698