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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/event_router.h

Issue 23890002: Extract OnDiskEvent and OnFormatEvent logic part from EventRouter to VolumeManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/event_router.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.h b/chrome/browser/chromeos/extensions/file_manager/event_router.h
index 5136596ba0364806a6f9ce1384682b00cdc2316b..20a725c1460df04ce58be412bd64a6f72b05b6b4 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.h
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.h
@@ -106,19 +106,24 @@ class EventRouter
virtual void OnFileSystemBeingUnmounted() OVERRIDE;
// VolumeManagerObserver overrides.
+ virtual void OnDiskAdded(
+ const chromeos::disks::DiskMountManager::Disk& disk,
+ bool mounting) OVERRIDE;
+ virtual void OnDiskRemoved(
+ const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE;
virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE;
virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE;
+ virtual void OnFormatStarted(
+ const std::string& device_path, bool success) OVERRIDE;
+ virtual void OnFormatCompleted(
+ const std::string& device_path, bool success) OVERRIDE;
private:
typedef std::map<base::FilePath, FileWatcher*> WatcherMap;
// USB mount event handlers.
- void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk* disk);
- void OnDiskRemoved(const chromeos::disks::DiskMountManager::Disk* disk);
void OnDiskMounted(const chromeos::disks::DiskMountManager::Disk* disk);
void OnDiskUnmounted(const chromeos::disks::DiskMountManager::Disk* disk);
- void OnFormatStarted(const std::string& device_path, bool success);
- void OnFormatCompleted(const std::string& device_path, bool success);
// Called on change to kExternalStorageDisabled pref.
void OnExternalStorageDisabledChanged();
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698