| 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_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" | 14 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system/drive_operations.h" | |
| 16 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" | 15 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" |
| 16 #include "chrome/browser/chromeos/drive/file_system/operations.h" |
| 17 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 17 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 18 #include "chrome/browser/chromeos/drive/file_system_util.h" | 18 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 19 #include "chrome/browser/chromeos/drive/job_list.h" | 19 #include "chrome/browser/chromeos/drive/job_list.h" |
| 20 #include "chrome/browser/google_apis/gdata_errorcode.h" | 20 #include "chrome/browser/google_apis/gdata_errorcode.h" |
| 21 | 21 |
| 22 class PrefChangeRegistrar; | 22 class PrefChangeRegistrar; |
| 23 class Profile; | 23 class Profile; |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 struct PlatformFileInfo; | 26 struct PlatformFileInfo; |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 460 |
| 461 scoped_ptr<PrefChangeRegistrar> pref_registrar_; | 461 scoped_ptr<PrefChangeRegistrar> pref_registrar_; |
| 462 | 462 |
| 463 // The loader is used to load the change lists. | 463 // The loader is used to load the change lists. |
| 464 scoped_ptr<internal::ChangeListLoader> change_list_loader_; | 464 scoped_ptr<internal::ChangeListLoader> change_list_loader_; |
| 465 | 465 |
| 466 ObserverList<FileSystemObserver> observers_; | 466 ObserverList<FileSystemObserver> observers_; |
| 467 | 467 |
| 468 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 468 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 469 | 469 |
| 470 file_system::DriveOperations drive_operations_; | 470 file_system::Operations operations_; |
| 471 | 471 |
| 472 // Polling interval for checking updates in seconds. | 472 // Polling interval for checking updates in seconds. |
| 473 int polling_interval_sec_; | 473 int polling_interval_sec_; |
| 474 | 474 |
| 475 // Note: This should remain the last member so it'll be destroyed and | 475 // Note: This should remain the last member so it'll be destroyed and |
| 476 // invalidate the weak pointers before any other members are destroyed. | 476 // invalidate the weak pointers before any other members are destroyed. |
| 477 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 477 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 478 | 478 |
| 479 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 479 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 } // namespace drive | 482 } // namespace drive |
| 483 | 483 |
| 484 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 484 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |