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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_event_router.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: Created 8 years, 5 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/extensions/file_browser_event_router.h
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.h b/chrome/browser/chromeos/extensions/file_browser_event_router.h
index 1e41f85b792179aa6a4d93ce0f640106428a0c34..598e8046e1e164733f49790bb1295e58bf78071c 100644
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.h
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.h
@@ -52,6 +52,12 @@ class FileBrowserEventRouter
void RemoveFileWatch(const FilePath& file_path,
const std::string& extension_id);
+ // GData mount routines.
satorux1 2012/08/01 20:59:01 oh no, please write better function comments. Don'
yoshiki 2012/08/01 22:23:39 Done.
+ void MountGData(const base::Callback<void(bool)>& callback);
satorux1 2012/08/01 20:59:01 what's bool? MountGData -> MountDrive(). Historic
yoshiki 2012/08/01 22:23:39 It is intended to return the result of mount. But
+ void OnGDataAuthentication(const base::Callback<void(bool)>& callback,
+ gdata::GDataErrorCode error,
+ const std::string& tokeni);
+
// CrosDisksClient::Observer overrides.
virtual void DiskChanged(chromeos::disks::DiskMountManagerEventType event,
const chromeos::disks::DiskMountManager::Disk* disk)
@@ -82,6 +88,8 @@ class FileBrowserEventRouter
// gdata::GDataFileSystemInterface::Observer overrides.
virtual void OnDirectoryChanged(const FilePath& directory_path) OVERRIDE;
virtual void OnDocumentFeedFetched(int num_accumulated_entries) OVERRIDE;
+ virtual void OnFileSystemMounted() OVERRIDE;
+ virtual void OnFileSystemUnmounting() OVERRIDE;
private:
friend class FileBrowserEventRouterFactory;

Powered by Google App Engine
This is Rietveld 408576698