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

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

Issue 507293002: Enrich fileBrowserPrivate.onFileTransfersUpdated event to support displaying total number of jobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/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..c2194a6234490948d26035b089505ea3f8072e1e 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.h
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.h
@@ -195,9 +195,20 @@ class EventRouter
drive::JobInfo job_info;
std::string status;
};
+
+ // Sends onFileTranferUpdated to extensions if needed. The request is send
+ // after enough time has passed from the previous event.
+ void SendDriveFileTransferEventDelay(
hirono 2014/08/28 08:31:38 Could you integrate this method with SendDriveFile
iseki 2014/08/29 01:58:00 Done.
+ const DriveJobInfoWithStatus& job_info_with_status,
+ base::Time call_time,
+ bool is_delayed);
+
std::map<drive::JobID, DriveJobInfoWithStatus> drive_jobs_;
base::Time last_file_transfer_event_;
base::Time last_copy_progress_event_;
+ base::Time last_post_delayed_task_;
+
+ const base::TimeDelta startup_time_delta_;
WatcherMap file_watchers_;
scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;

Powered by Google App Engine
This is Rietveld 408576698