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

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

Issue 566433004: Add notification and observer to copy the file between other users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 9e4fe679c526c66b30945615383f8fe4c3dea930..0987601b171ec6384e1a21aa1b54b3d2752c3907 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.h
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.h
@@ -52,7 +52,8 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
public drive::FileSystemObserver,
public drive::JobListObserver,
public drive::DriveServiceObserver,
- public VolumeManagerObserver {
+ public VolumeManagerObserver,
+ public content::NotificationObserver {
public:
explicit EventRouter(Profile* profile);
virtual ~EventRouter();
@@ -126,6 +127,11 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
virtual void OnFormatCompleted(
const std::string& device_path, bool success) OVERRIDE;
+ // content::NotificationObserver overrides.
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
private:
typedef std::map<base::FilePath, FileWatcher*> WatcherMap;
@@ -197,6 +203,8 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
Profile* profile_;
+ content::NotificationRegistrar notification_registrar_;
+
scoped_ptr<DeviceEventRouter> device_event_router_;
// Note: This should remain the last member so it'll be destroyed and

Powered by Google App Engine
This is Rietveld 408576698