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

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

Issue 11343004: drive: Add "Delta Update Status" section to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 8 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 // The document service owned by DriveSystemService. 715 // The document service owned by DriveSystemService.
716 google_apis::DriveServiceInterface* drive_service_; 716 google_apis::DriveServiceInterface* drive_service_;
717 717
718 // The webapps registry owned by DriveSystemService. 718 // The webapps registry owned by DriveSystemService.
719 DriveWebAppsRegistryInterface* webapps_registry_; 719 DriveWebAppsRegistryInterface* webapps_registry_;
720 720
721 // Periodic timer for checking updates. 721 // Periodic timer for checking updates.
722 base::Timer update_timer_; 722 base::Timer update_timer_;
723 723
724 // Time of the last update check.
725 base::Time last_update_check_time_;
726
727 // Error of the last update check.
728 DriveFileError last_update_check_error_;
729
724 // True if hosted documents should be hidden. 730 // True if hosted documents should be hidden.
725 bool hide_hosted_docs_; 731 bool hide_hosted_docs_;
726 732
727 // The set of paths opened by OpenFile but not yet closed by CloseFile. 733 // The set of paths opened by OpenFile but not yet closed by CloseFile.
728 std::set<FilePath> open_files_; 734 std::set<FilePath> open_files_;
729 735
730 scoped_ptr<PrefChangeRegistrar> pref_registrar_; 736 scoped_ptr<PrefChangeRegistrar> pref_registrar_;
731 737
732 // The loader is used to load the feeds. 738 // The loader is used to load the feeds.
733 scoped_ptr<DriveFeedLoader> feed_loader_; 739 scoped_ptr<DriveFeedLoader> feed_loader_;
734 740
735 ObserverList<DriveFileSystemObserver> observers_; 741 ObserverList<DriveFileSystemObserver> observers_;
736 742
737 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 743 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
738 744
739 file_system::DriveOperations drive_operations_; 745 file_system::DriveOperations drive_operations_;
740 746
741 scoped_ptr<DriveScheduler> scheduler_; 747 scoped_ptr<DriveScheduler> scheduler_;
742 748
743 // WeakPtrFactory and WeakPtr bound to the UI thread. 749 // WeakPtrFactory and WeakPtr bound to the UI thread.
744 // Note: These should remain the last member so they'll be destroyed and 750 // Note: These should remain the last member so they'll be destroyed and
745 // invalidate the weak pointers before any other members are destroyed. 751 // invalidate the weak pointers before any other members are destroyed.
746 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_; 752 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_;
747 // Unlike other classes, we need this as we need this to redirect a task 753 // Unlike other classes, we need this as we need this to redirect a task
748 // from IO thread to UI thread. 754 // from IO thread to UI thread.
749 base::WeakPtr<DriveFileSystem> ui_weak_ptr_; 755 base::WeakPtr<DriveFileSystem> ui_weak_ptr_;
750 756
751 // Polling interval for checking updates in seconds. 757 // Polling interval for checking updates in seconds.
752 int polling_interval_sec_; 758 int polling_interval_sec_;
759
760 // True if push notification is enabled.
761 bool push_notification_enabled_;
kinaba 2012/10/29 13:12:34 This variable and polling_interval_sec_ are violat
satorux1 2012/11/01 07:20:24 oops. Fixed
753 }; 762 };
754 763
755 } // namespace drive 764 } // namespace drive
756 765
757 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ 766 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698