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_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_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 "base/timer.h" | 14 #include "base/timer.h" |
15 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 15 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
16 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" | 16 #include "chrome/browser/chromeos/drive/change_list_loader_observer.h" |
17 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" | 17 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" |
| 18 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
18 #include "chrome/browser/chromeos/drive/file_system/drive_operations.h" | 19 #include "chrome/browser/chromeos/drive/file_system/drive_operations.h" |
19 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" | 20 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" |
20 #include "chrome/browser/google_apis/gdata_errorcode.h" | 21 #include "chrome/browser/google_apis/gdata_errorcode.h" |
21 | 22 |
22 class PrefChangeRegistrar; | 23 class PrefChangeRegistrar; |
23 class Profile; | 24 class Profile; |
24 | 25 |
25 namespace base { | 26 namespace base { |
26 struct PlatformFileInfo; | 27 struct PlatformFileInfo; |
27 class SequencedTaskRunner; | 28 class SequencedTaskRunner; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 scoped_ptr<DriveEntryProto> entry_proto, | 453 scoped_ptr<DriveEntryProto> entry_proto, |
453 const GetEntryInfoCallback& callback, | 454 const GetEntryInfoCallback& callback, |
454 DriveFileError error, | 455 DriveFileError error, |
455 const base::FilePath& local_cache_path); | 456 const base::FilePath& local_cache_path); |
456 void CheckLocalModificationAndRunAfterGetFileInfo( | 457 void CheckLocalModificationAndRunAfterGetFileInfo( |
457 scoped_ptr<DriveEntryProto> entry_proto, | 458 scoped_ptr<DriveEntryProto> entry_proto, |
458 const GetEntryInfoCallback& callback, | 459 const GetEntryInfoCallback& callback, |
459 base::PlatformFileInfo* file_info, | 460 base::PlatformFileInfo* file_info, |
460 bool get_file_info_result); | 461 bool get_file_info_result); |
461 | 462 |
462 scoped_ptr<DriveResourceMetadata> resource_metadata_; | 463 scoped_ptr<DriveResourceMetadata, util::DestroyHelper> resource_metadata_; |
463 | 464 |
464 // The profile hosts the DriveFileSystem via DriveSystemService. | 465 // The profile hosts the DriveFileSystem via DriveSystemService. |
465 Profile* profile_; | 466 Profile* profile_; |
466 | 467 |
467 // The cache owned by DriveSystemService. | 468 // The cache owned by DriveSystemService. |
468 DriveCache* cache_; | 469 DriveCache* cache_; |
469 | 470 |
470 // The uploader owned by DriveSystemService. | 471 // The uploader owned by DriveSystemService. |
471 google_apis::DriveUploaderInterface* uploader_; | 472 google_apis::DriveUploaderInterface* uploader_; |
472 | 473 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // Note: These should remain the last member so they'll be destroyed and | 514 // Note: These should remain the last member so they'll be destroyed and |
514 // invalidate the weak pointers before any other members are destroyed. | 515 // invalidate the weak pointers before any other members are destroyed. |
515 base::WeakPtrFactory<DriveFileSystem> weak_ptr_factory_; | 516 base::WeakPtrFactory<DriveFileSystem> weak_ptr_factory_; |
516 | 517 |
517 DISALLOW_COPY_AND_ASSIGN(DriveFileSystem); | 518 DISALLOW_COPY_AND_ASSIGN(DriveFileSystem); |
518 }; | 519 }; |
519 | 520 |
520 } // namespace drive | 521 } // namespace drive |
521 | 522 |
522 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ | 523 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |