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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_interface.h

Issue 10834115: Drive: Mount/Unmount GoogleDrive on Files App when the file system is mounted/unmounted. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: review fix Created 8 years, 4 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/gdata/gdata_file_system_interface.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_interface.h b/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
index b0cd9be4e41216032b436445cff37ba900567175..d50f3aeb46ffdd578fb7820ebf3083e54f8779df 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_interface.h
@@ -107,6 +107,11 @@ class GDataFileSystemInterface {
// Triggered when the feed from the server is loaded.
virtual void OnFeedFromServerLoaded() {}
+ // Triggered when the file system is mounted.
+ virtual void OnFileSystemMounted() {}
+ // Triggered when the file system is getting unmounted.
satorux1 2012/08/03 18:21:14 is being unmounted
yoshiki 2012/08/03 20:10:31 Done.
+ virtual void OnFileSystemUnmounting() {}
satorux1 2012/08/03 18:21:14 OnFileSystemBeingUnmounted
yoshiki 2012/08/03 20:10:31 Done.
+
protected:
virtual ~Observer() {}
};
@@ -123,6 +128,12 @@ class GDataFileSystemInterface {
virtual void StartUpdates() = 0;
virtual void StopUpdates() = 0;
+ // Notifies the file system was just mounted.
+ virtual void NotifyFileSystemMounted() = 0;
+
+ // Notifies the file system is going to be unmounted.
+ virtual void NotifyFileSystemToBeUnmounted() = 0;
+
// Checks for updates on the server.
virtual void CheckForUpdates() = 0;

Powered by Google App Engine
This is Rietveld 408576698