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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 bool disable_throttling_; | 360 bool disable_throttling_; |
361 | 361 |
362 // The queue of jobs. Sorted by priority. | 362 // The queue of jobs. Sorted by priority. |
363 std::list<QueueEntry*> queue_; | 363 std::list<QueueEntry*> queue_; |
364 | 364 |
365 google_apis::DriveServiceInterface* drive_service_; | 365 google_apis::DriveServiceInterface* drive_service_; |
366 google_apis::DriveUploaderInterface* uploader_; | 366 google_apis::DriveUploaderInterface* uploader_; |
367 | 367 |
368 Profile* profile_; | 368 Profile* profile_; |
369 | 369 |
370 // Whether this instance is initialized or not. | |
371 bool initialized_; | |
hashimoto
2013/02/12 03:42:39
Good catch.
| |
372 | |
370 // Note: This should remain the last member so it'll be destroyed and | 373 // Note: This should remain the last member so it'll be destroyed and |
371 // invalidate its weak pointers before any other members are destroyed. | 374 // invalidate its weak pointers before any other members are destroyed. |
372 base::WeakPtrFactory<DriveScheduler> weak_ptr_factory_; | 375 base::WeakPtrFactory<DriveScheduler> weak_ptr_factory_; |
373 | |
374 // Whether this instance is initialized or not. | |
375 bool initialized_; | |
376 | |
377 DISALLOW_COPY_AND_ASSIGN(DriveScheduler); | 376 DISALLOW_COPY_AND_ASSIGN(DriveScheduler); |
378 }; | 377 }; |
379 | 378 |
380 } // namespace drive | 379 } // namespace drive |
381 | 380 |
382 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ | 381 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SCHEDULER_H_ |
OLD | NEW |