Chromium Code Reviews| 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 42e65b60b5f4865cdf63fe543ebc6ae7bf0b849f..e2fb7f362b345396647788b24989731ea78e5d76 100644 |
| --- a/chrome/browser/chromeos/extensions/file_manager/event_router.h |
| +++ b/chrome/browser/chromeos/extensions/file_manager/event_router.h |
| @@ -182,22 +182,28 @@ class EventRouter |
| void ShowRemovableDeviceInFileManager(VolumeType type, |
| const base::FilePath& mount_path); |
| - // Sends onFileTranferUpdated to extensions if needed. If |always| is true, |
| - // it sends the event always. Otherwise, it sends the event if enough time has |
| - // passed from the previous event so as not to make extension busy. |
| - void SendDriveFileTransferEvent(bool always); |
| - |
| // Manages the list of currently active Drive file transfer jobs. |
| struct DriveJobInfoWithStatus { |
| DriveJobInfoWithStatus(); |
| DriveJobInfoWithStatus(const drive::JobInfo& info, |
| const std::string& status); |
| + bool empty(); |
| drive::JobInfo job_info; |
| std::string status; |
| }; |
| + |
| + // Schedule onFileTransferUpdated event. |
| + void ScheduleEvent(DriveJobInfoWithStatus& job_info_with_status, |
|
hirono
2014/09/01 03:53:44
Sorry this is my fault. The naming in my pseudo co
iseki
2014/09/01 06:45:40
Done.
|
| + bool immediate); |
| + |
| + // Sends onFileTranferUpdated to extensions if after nextSendTime_. |
| + void SendDriveFileTransferEvent(); |
| + |
| std::map<drive::JobID, DriveJobInfoWithStatus> drive_jobs_; |
| + DriveJobInfoWithStatus drive_job_info_with_status_; |
| base::Time last_file_transfer_event_; |
| base::Time last_copy_progress_event_; |
| + base::Time nextSendTime_; |
|
hirono
2014/09/01 03:53:44
ditto. Please fix the name.
iseki
2014/09/01 06:45:40
Done.
|
| WatcherMap file_watchers_; |
| scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |