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

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

Issue 10829118: gdata: Move GDataWapiFeedParser to a set of new files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang build for sure... 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "base/timer.h" 17 #include "base/timer.h"
18 #include "chrome/browser/chromeos/gdata/gdata_cache.h" 18 #include "chrome/browser/chromeos/gdata/gdata_cache.h"
19 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" 19 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
20 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 20 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
21 #include "chrome/browser/chromeos/gdata/gdata_files.h" 21 #include "chrome/browser/chromeos/gdata/gdata_files.h"
22 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h"
22 #include "chrome/browser/prefs/pref_change_registrar.h" 23 #include "chrome/browser/prefs/pref_change_registrar.h"
23 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
24 25
25 namespace base { 26 namespace base {
26 27
27 class SequencedTaskRunner; 28 class SequencedTaskRunner;
28 29
29 } // namespace base 30 } // namespace base
30 31
31 namespace gdata { 32 namespace gdata {
32 33
33 class DocumentsServiceInterface; 34 class DocumentsServiceInterface;
34 class DriveWebAppsRegistryInterface; 35 class DriveWebAppsRegistryInterface;
35 struct UploadFileInfo; 36 struct UploadFileInfo;
36 37
37 namespace { 38 namespace {
38 struct LoadRootFeedParams; 39 struct LoadRootFeedParams;
39 } // namespace 40 } // namespace
40 41
41 // TODO(satorux): Move this into a new file. crbug.com/130669
42 typedef std::map<std::string /* resource_id */, GDataEntry*>
43 FileResourceIdMap;
44
45 // The production implementation of GDataFileSystemInterface. 42 // The production implementation of GDataFileSystemInterface.
46 class GDataFileSystem : public GDataFileSystemInterface, 43 class GDataFileSystem : public GDataFileSystemInterface,
47 public content::NotificationObserver { 44 public content::NotificationObserver {
48 public: 45 public:
49 GDataFileSystem(Profile* profile, 46 GDataFileSystem(Profile* profile,
50 GDataCache* cache, 47 GDataCache* cache,
51 DocumentsServiceInterface* documents_service, 48 DocumentsServiceInterface* documents_service,
52 GDataUploaderInterface* uploader, 49 GDataUploaderInterface* uploader,
53 DriveWebAppsRegistryInterface* webapps_registry, 50 DriveWebAppsRegistryInterface* webapps_registry,
54 base::SequencedTaskRunner* blocking_task_runner); 51 base::SequencedTaskRunner* blocking_task_runner);
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 void GetEntryInfoByResourceIdOnUIThread( 789 void GetEntryInfoByResourceIdOnUIThread(
793 const std::string& resource_id, 790 const std::string& resource_id,
794 const GetEntryInfoWithFilePathCallback& callback); 791 const GetEntryInfoWithFilePathCallback& callback);
795 void ReadDirectoryByPathAsyncOnUIThread( 792 void ReadDirectoryByPathAsyncOnUIThread(
796 const FilePath& file_path, 793 const FilePath& file_path,
797 const ReadDirectoryCallback& callback); 794 const ReadDirectoryCallback& callback);
798 void RequestDirectoryRefreshOnUIThread( 795 void RequestDirectoryRefreshOnUIThread(
799 const FilePath& file_path); 796 const FilePath& file_path);
800 void OnRequestDirectoryRefresh(GetDocumentsParams* params, 797 void OnRequestDirectoryRefresh(GetDocumentsParams* params,
801 GDataFileError error); 798 GDataFileError error);
802 void RequestDirectoryRefreshByEntry(const FilePath& directory_path, 799 void RequestDirectoryRefreshByEntry(
800 const FilePath& directory_path,
803 const std::string& directory_resource_id, 801 const std::string& directory_resource_id,
804 const FileResourceIdMap& file_map, 802 const FileResourceIdMap& file_map,
805 GDataEntry* directory_entry); 803 GDataEntry* directory_entry);
806 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback); 804 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback);
807 void AddUploadedFileOnUIThread(UploadMode upload_mode, 805 void AddUploadedFileOnUIThread(UploadMode upload_mode,
808 const FilePath& virtual_dir_path, 806 const FilePath& virtual_dir_path,
809 scoped_ptr<DocumentEntry> entry, 807 scoped_ptr<DocumentEntry> entry,
810 const FilePath& file_content_path, 808 const FilePath& file_content_path,
811 GDataCache::FileOperationType cache_operation, 809 GDataCache::FileOperationType cache_operation,
812 const base::Closure& callback); 810 const base::Closure& callback);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 883 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
886 884
887 ObserverList<Observer> observers_; 885 ObserverList<Observer> observers_;
888 886
889 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 887 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
890 }; 888 };
891 889
892 } // namespace gdata 890 } // namespace gdata
893 891
894 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 892 #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