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_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 void LoadRootFeedFromCache(bool should_load_from_server, | 601 void LoadRootFeedFromCache(bool should_load_from_server, |
602 const FilePath& search_file_path, | 602 const FilePath& search_file_path, |
603 const FindEntryCallback& callback); | 603 const FindEntryCallback& callback); |
604 | 604 |
605 // Callback for handling root directory refresh from the cache. | 605 // Callback for handling root directory refresh from the cache. |
606 void OnProtoLoaded(LoadRootFeedParams* params); | 606 void OnProtoLoaded(LoadRootFeedParams* params); |
607 | 607 |
608 // Save filesystem as proto file. | 608 // Save filesystem as proto file. |
609 void SaveFileSystemAsProto(); | 609 void SaveFileSystemAsProto(); |
610 | 610 |
611 // Notifies events to observers on UI thread. | |
612 void NotifyDirectoryChanged(const FilePath& directory_path); | |
613 void NotifyDocumentFeedFetched(int num_accumulated_entries); | |
614 | |
615 // Runs the callback and notifies that the initial load is finished. | 611 // Runs the callback and notifies that the initial load is finished. |
616 void RunAndNotifyInitialLoadFinished( | 612 void RunAndNotifyInitialLoadFinished( |
617 const FindEntryCallback& callback, | 613 const FindEntryCallback& callback, |
618 GDataFileError error, | 614 GDataFileError error, |
619 GDataEntry* entry); | 615 GDataEntry* entry); |
620 | 616 |
621 // Helper function that completes bookkeeping tasks related to | 617 // Helper function that completes bookkeeping tasks related to |
622 // completed file transfer. | 618 // completed file transfer. |
623 void OnTransferCompleted( | 619 void OnTransferCompleted( |
624 const FileOperationCallback& callback, | 620 const FileOperationCallback& callback, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; | 879 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
884 | 880 |
885 ObserverList<Observer> observers_; | 881 ObserverList<Observer> observers_; |
886 | 882 |
887 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 883 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
888 }; | 884 }; |
889 | 885 |
890 } // namespace gdata | 886 } // namespace gdata |
891 | 887 |
892 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 888 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |