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

Unified Diff: components/drive/job_queue.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « components/drive/job_list.h ('k') | components/drive/job_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/job_queue.h
diff --git a/components/drive/job_queue.h b/components/drive/job_queue.h
index 7a169a496930a05ea286982961e68a4b61fd98de..62bfa63fc671395773a5597fc14b9f1665e12c09 100644
--- a/components/drive/job_queue.h
+++ b/components/drive/job_queue.h
@@ -5,10 +5,14 @@
#ifndef COMPONENTS_DRIVE_JOB_QUEUE_H_
#define COMPONENTS_DRIVE_JOB_QUEUE_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <deque>
#include <set>
#include <vector>
+#include "base/macros.h"
#include "components/drive/job_list.h"
namespace drive {
@@ -30,7 +34,7 @@ class JobQueue {
// are pushed continuously, there will be popped at the same time unless the
// number of jobs exceeds |num_max_batch_jobs_| or the sum of |job_size|
// exceeds or |max_batch_size_|.
- void Push(JobID id, int priority, bool batchable, uint64 job_size);
+ void Push(JobID id, int priority, bool batchable, uint64_t job_size);
// Pops the first job which meets |accepted_priority| (i.e. the first job in
// the queue with equal or higher priority (lower value)), and the limit of
@@ -67,11 +71,11 @@ class JobQueue {
// runs next.
struct Item {
Item();
- Item(JobID id, bool batchable, uint64 size);
+ Item(JobID id, bool batchable, uint64_t size);
~Item();
JobID id;
bool batchable;
- uint64 size;
+ uint64_t size;
};
const size_t num_max_concurrent_jobs_;
« no previous file with comments | « components/drive/job_list.h ('k') | components/drive/job_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698