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

Unified Diff: chrome/browser/chromeos/drive/job_list_interface.h

Issue 14188035: Pass error code for drive::JobListObserver::OnJobDone(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « chrome/browser/chromeos/drive/drive_scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/job_list_interface.h
diff --git a/chrome/browser/chromeos/drive/job_list_interface.h b/chrome/browser/chromeos/drive/job_list_interface.h
index 1d4637e2db93e98321f854ecf7ef971441c4aa25..f953fa6208ce593555d86116ea974aea67eef3d8 100644
--- a/chrome/browser/chromeos/drive/job_list_interface.h
+++ b/chrome/browser/chromeos/drive/job_list_interface.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
+#include "chrome/browser/chromeos/drive/drive_file_error.h"
namespace drive {
@@ -87,7 +88,10 @@ class JobListObserver {
virtual void OnJobAdded(const JobInfo& job_info) {}
// Called when a job id finished.
- virtual void OnJobDone(const JobInfo& job_info) {}
+ // |error| is DRIVE_FILE_OK when the job successfully finished, and a value
+ // telling the reason of failure when the jobs is failed.
+ virtual void OnJobDone(const JobInfo& job_info,
+ DriveFileError error) {}
// Called when a job status is updated.
virtual void OnJobUpdated(const JobInfo& job_info) {}
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698