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

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: Remove unused methods in mock_gdata_file_system.h 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..22b44dbe4f5049c96bbe8ac6eed342298a641dda 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 being unmounted.
+ virtual void OnFileSystemBeingUnmounted() {}
+
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;
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_system_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698