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

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

Issue 14235015: Fill JobInfo in DriveScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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_unittest.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 fedf5f90c976cc8067700444fecef838cc7fdb00..1d4637e2db93e98321f854ecf7ef971441c4aa25 100644
--- a/chrome/browser/chromeos/drive/job_list_interface.h
+++ b/chrome/browser/chromeos/drive/job_list_interface.h
@@ -52,9 +52,9 @@ struct JobInfo {
explicit JobInfo(JobType in_job_type)
: job_type(in_job_type),
job_id(-1),
+ state(STATE_NONE),
num_completed_bytes(0),
- num_total_bytes(0),
- state(STATE_NONE) {
+ num_total_bytes(0) {
}
// Type of the job.
@@ -63,17 +63,20 @@ struct JobInfo {
// Id of the job, which can be used to query or modify it.
JobID job_id;
- // Number of bytes completed, if applicable.
+ // Current state of the operation.
+ JobState state;
+
+ // The fields below are available only for jobs with job_type:
+ // TYPE_DOWNLOAD_FILE, TYPE_UPLOAD_NEW_FILE, or TYPE_UPLOAD_EXISTING_FILE.
+
+ // Number of bytes completed.
int64 num_completed_bytes;
- // Total bytes of this operation, if applicable.
+ // Total bytes of this operation.
int64 num_total_bytes;
// Drive path of the file that this job acts on.
base::FilePath file_path;
-
- // Current state of the operation.
- JobState state;
};
// The interface for observing JobListInterface.
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698