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

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

Issue 14493009: drive: Rename DriveScheduler to JobScheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent 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
Index: chrome/browser/chromeos/drive/job_scheduler.h
diff --git a/chrome/browser/chromeos/drive/drive_scheduler.h b/chrome/browser/chromeos/drive/job_scheduler.h
similarity index 96%
rename from chrome/browser/chromeos/drive/drive_scheduler.h
rename to chrome/browser/chromeos/drive/job_scheduler.h
index e75b2edf24cad7af7341fb954fc81e6aef686159..49b251aa8f24f0befb443e7b802a0cf78f1d3c65 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.h
+++ b/chrome/browser/chromeos/drive/job_scheduler.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_
-#define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_
+#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_
+#define CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_
#include <list>
#include <vector>
@@ -21,16 +21,16 @@ class Profile;
namespace drive {
-// The DriveScheduler is responsible for queuing and scheduling drive
+// The JobScheduler is responsible for queuing and scheduling drive
// operations. It is responsible for handling retry logic, rate limiting, as
// concurrency as appropriate.
-class DriveScheduler
+class JobScheduler
: public net::NetworkChangeNotifier::ConnectionTypeObserver,
public JobListInterface {
public:
- DriveScheduler(Profile* profile,
- google_apis::DriveServiceInterface* drive_service);
- virtual ~DriveScheduler();
+ JobScheduler(Profile* profile,
+ google_apis::DriveServiceInterface* drive_service);
+ virtual ~JobScheduler();
// JobListInterface overrides.
virtual std::vector<JobInfo> GetJobInfoList() OVERRIDE;
@@ -145,7 +145,7 @@ class DriveScheduler
const google_apis::UploadCompletionCallback& upload_completion_callback);
private:
- friend class DriveSchedulerTest;
+ friend class JobSchedulerTest;
enum QueueType {
METADATA_QUEUE,
@@ -408,10 +408,10 @@ class DriveScheduler
// Note: This should remain the last member so it'll be destroyed and
// invalidate its weak pointers before any other members are destroyed.
- base::WeakPtrFactory<DriveScheduler> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(DriveScheduler);
+ base::WeakPtrFactory<JobScheduler> weak_ptr_factory_;
+ DISALLOW_COPY_AND_ASSIGN(JobScheduler);
};
} // namespace drive
-#endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_
+#endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/update_operation.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698