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

Side by Side Diff: chrome/browser/chromeos/drive/drive_scheduler.h

Issue 12229002: Misc cleanups in Drive code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_util.h ('k') | chrome/browser/chromeos/drive/drive_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698