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

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: Removed some too strict thread checks. Created 6 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
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 d2147e61309eb36e97fdd85aaf07d4901039fd90..be4dc6699dadd1cccf37b0b21f77a4a30aba4c1f 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 {
@@ -15,13 +17,18 @@ class ProvidedFileSystem;
// 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 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
« no previous file with comments | « chrome/browser/chromeos/file_manager/volume_manager.cc ('k') | chrome/browser/chromeos/file_system_provider/request_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698