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_GDATA_DRIVE_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 void CheckLocalModificationAndRunAfterGetFileInfo( | 813 void CheckLocalModificationAndRunAfterGetFileInfo( |
814 scoped_ptr<DriveEntryProto> entry_proto, | 814 scoped_ptr<DriveEntryProto> entry_proto, |
815 const GetEntryInfoCallback& callback, | 815 const GetEntryInfoCallback& callback, |
816 base::PlatformFileInfo* file_info, | 816 base::PlatformFileInfo* file_info, |
817 bool* get_file_info_result); | 817 bool* get_file_info_result); |
818 | 818 |
819 // All members should be accessed only on UI thread. Do not post tasks to | 819 // All members should be accessed only on UI thread. Do not post tasks to |
820 // other threads with base::Unretained(this). | 820 // other threads with base::Unretained(this). |
821 scoped_ptr<DriveResourceMetadata> resource_metadata_; | 821 scoped_ptr<DriveResourceMetadata> resource_metadata_; |
822 | 822 |
823 // The profile hosts the DriveFileSystem via GDataSystemService. | 823 // The profile hosts the DriveFileSystem via DriveSystemService. |
824 Profile* profile_; | 824 Profile* profile_; |
825 | 825 |
826 // The cache owned by GDataSystemService. | 826 // The cache owned by DriveSystemService. |
827 DriveCache* cache_; | 827 DriveCache* cache_; |
828 | 828 |
829 // The uploader owned by GDataSystemService. | 829 // The uploader owned by DriveSystemService. |
830 GDataUploaderInterface* uploader_; | 830 GDataUploaderInterface* uploader_; |
831 | 831 |
832 // The document service owned by GDataSystemService. | 832 // The document service owned by DriveSystemService. |
833 DriveServiceInterface* drive_service_; | 833 DriveServiceInterface* drive_service_; |
834 | 834 |
835 // The webapps registry owned by GDataSystemService. | 835 // The webapps registry owned by DriveSystemService. |
836 DriveWebAppsRegistryInterface* webapps_registry_; | 836 DriveWebAppsRegistryInterface* webapps_registry_; |
837 | 837 |
838 // Periodic timer for checking updates. | 838 // Periodic timer for checking updates. |
839 base::Timer update_timer_; | 839 base::Timer update_timer_; |
840 | 840 |
841 // True if hosted documents should be hidden. | 841 // True if hosted documents should be hidden. |
842 bool hide_hosted_docs_; | 842 bool hide_hosted_docs_; |
843 | 843 |
844 // The set of paths opened by OpenFile but not yet closed by CloseFile. | 844 // The set of paths opened by OpenFile but not yet closed by CloseFile. |
845 std::set<FilePath> open_files_; | 845 std::set<FilePath> open_files_; |
(...skipping 12 matching lines...) Expand all Loading... |
858 // invalidate the weak pointers before any other members are destroyed. | 858 // invalidate the weak pointers before any other members are destroyed. |
859 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_; | 859 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_; |
860 // Unlike other classes, we need this as we need this to redirect a task | 860 // Unlike other classes, we need this as we need this to redirect a task |
861 // from IO thread to UI thread. | 861 // from IO thread to UI thread. |
862 base::WeakPtr<DriveFileSystem> ui_weak_ptr_; | 862 base::WeakPtr<DriveFileSystem> ui_weak_ptr_; |
863 }; | 863 }; |
864 | 864 |
865 } // namespace gdata | 865 } // namespace gdata |
866 | 866 |
867 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_H_ | 867 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |