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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 10830211: Revert 150436 - gdata: Remove hide_hosted_documents from ReadDirectoryCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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/gdata/gdata_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_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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // |has_enough_space|. 593 // |has_enough_space|.
594 void StartDownloadFileIfEnoughSpace(const GetFileFromCacheParams& params, 594 void StartDownloadFileIfEnoughSpace(const GetFileFromCacheParams& params,
595 const GURL& content_url, 595 const GURL& content_url,
596 const FilePath& cache_file_path, 596 const FilePath& cache_file_path,
597 bool* has_enough_space); 597 bool* has_enough_space);
598 598
599 // Helper function used to perform synchronous file search on UI thread. 599 // Helper function used to perform synchronous file search on UI thread.
600 void FindEntryByPathSyncOnUIThread(const FilePath& search_file_path, 600 void FindEntryByPathSyncOnUIThread(const FilePath& search_file_path,
601 const FindEntryCallback& callback); 601 const FindEntryCallback& callback);
602 602
603 // Changes state of hosted documents visibility, triggers directory refresh.
604 void SetHideHostedDocuments(bool hide);
605
603 // Initializes preference change observer. 606 // Initializes preference change observer.
604 void InitializePreferenceObserver(); 607 void InitializePreferenceObserver();
605 608
606 // Called when an entry is found for GetEntryInfoByPath(). 609 // Called when an entry is found for GetEntryInfoByPath().
607 void OnGetEntryInfo(const GetEntryInfoCallback& callback, 610 void OnGetEntryInfo(const GetEntryInfoCallback& callback,
608 GDataFileError error, 611 GDataFileError error,
609 GDataEntry* entry); 612 GDataEntry* entry);
610 613
611 // Called when an entry is found for ReadDirectoryByPath(). 614 // Called when an entry is found for ReadDirectoryByPath().
612 void OnReadDirectory(const ReadDirectoryCallback& callback, 615 void OnReadDirectory(const ReadDirectoryCallback& callback,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 790
788 // The document service owned by GDataSystemService. 791 // The document service owned by GDataSystemService.
789 DocumentsServiceInterface* documents_service_; 792 DocumentsServiceInterface* documents_service_;
790 793
791 // The webapps registry owned by GDataSystemService. 794 // The webapps registry owned by GDataSystemService.
792 DriveWebAppsRegistryInterface* webapps_registry_; 795 DriveWebAppsRegistryInterface* webapps_registry_;
793 796
794 // Periodic timer for checking updates. 797 // Periodic timer for checking updates.
795 base::Timer update_timer_; 798 base::Timer update_timer_;
796 799
800 // True if hosted documents should be hidden.
801 bool hide_hosted_docs_;
802
797 // The set of paths opened by OpenFile but not yet closed by CloseFile. 803 // The set of paths opened by OpenFile but not yet closed by CloseFile.
798 std::set<FilePath> open_files_; 804 std::set<FilePath> open_files_;
799 805
800 scoped_ptr<PrefChangeRegistrar> pref_registrar_; 806 scoped_ptr<PrefChangeRegistrar> pref_registrar_;
801 807
802 // The loader is used to load the feeds. 808 // The loader is used to load the feeds.
803 scoped_ptr<GDataWapiFeedLoader> feed_loader_; 809 scoped_ptr<GDataWapiFeedLoader> feed_loader_;
804 810
805 ObserverList<GDataFileSystemInterface::Observer> observers_; 811 ObserverList<GDataFileSystemInterface::Observer> observers_;
806 812
807 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 813 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
808 814
809 // WeakPtrFactory and WeakPtr bound to the UI thread. 815 // WeakPtrFactory and WeakPtr bound to the UI thread.
810 // Note: These should remain the last member so they'll be destroyed and 816 // Note: These should remain the last member so they'll be destroyed and
811 // invalidate the weak pointers before any other members are destroyed. 817 // invalidate the weak pointers before any other members are destroyed.
812 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 818 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
813 // Unlike other classes, we need this as we need this to redirect a task 819 // Unlike other classes, we need this as we need this to redirect a task
814 // from IO thread to UI thread. 820 // from IO thread to UI thread.
815 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 821 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
816 }; 822 };
817 823
818 } // namespace gdata 824 } // namespace gdata
819 825
820 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 826 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698