OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/drive/drive_scheduler.h" | 5 #include "chrome/browser/chromeos/drive/drive_scheduler.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 } | 905 } |
906 NOTREACHED(); | 906 NOTREACHED(); |
907 return FILE_QUEUE; | 907 return FILE_QUEUE; |
908 } | 908 } |
909 | 909 |
910 void DriveScheduler::NotifyJobAdded(const JobInfo& job_info) { | 910 void DriveScheduler::NotifyJobAdded(const JobInfo& job_info) { |
911 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 911 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
912 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobAdded(job_info)); | 912 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobAdded(job_info)); |
913 } | 913 } |
914 | 914 |
915 void DriveScheduler::NotifyJobDone(const JobInfo& job_info) { | 915 void DriveScheduler::NotifyJobDone(const JobInfo& job_info, |
| 916 DriveFileError error) { |
916 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 917 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
917 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobDone(job_info)); | 918 FOR_EACH_OBSERVER(JobListObserver, observer_list_, |
| 919 OnJobDone(job_info, error)); |
918 } | 920 } |
919 | 921 |
920 void DriveScheduler::NotifyJobUpdated(const JobInfo& job_info) { | 922 void DriveScheduler::NotifyJobUpdated(const JobInfo& job_info) { |
921 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 923 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
922 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobUpdated(job_info)); | 924 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobUpdated(job_info)); |
923 } | 925 } |
924 | 926 |
925 } // namespace drive | 927 } // namespace drive |
OLD | NEW |