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> |
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_directory_service.h" | 19 #include "chrome/browser/chromeos/gdata/gdata_directory_service.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_file_system_interface.h" | 21 #include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h" |
22 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h" | 22 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h" |
23 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" | 23 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" |
24 #include "chrome/browser/prefs/pref_change_registrar.h" | 24 #include "chrome/browser/prefs/pref_change_registrar.h" |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
26 | 26 |
27 namespace base { | 27 namespace base { |
| 28 |
28 class SequencedTaskRunner; | 29 class SequencedTaskRunner; |
29 } | 30 |
| 31 } // namespace base |
30 | 32 |
31 namespace gdata { | 33 namespace gdata { |
32 | 34 |
33 class DocumentsServiceInterface; | 35 class DocumentsServiceInterface; |
34 class DriveWebAppsRegistryInterface; | 36 class DriveWebAppsRegistryInterface; |
35 class GDataUploaderInterface; | |
36 class GDataWapiFeedLoader; | 37 class GDataWapiFeedLoader; |
37 struct UploadFileInfo; | 38 struct UploadFileInfo; |
38 | 39 |
39 // The production implementation of GDataFileSystemInterface. | 40 // The production implementation of GDataFileSystemInterface. |
40 class GDataFileSystem : public GDataFileSystemInterface, | 41 class GDataFileSystem : public GDataFileSystemInterface, |
41 public GDataWapiFeedLoader::Observer, | 42 public GDataWapiFeedLoader::Observer, |
42 public content::NotificationObserver { | 43 public content::NotificationObserver { |
43 public: | 44 public: |
44 GDataFileSystem(Profile* profile, | 45 GDataFileSystem(Profile* profile, |
45 GDataCache* cache, | 46 GDataCache* cache, |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 // invalidate the weak pointers before any other members are destroyed. | 846 // invalidate the weak pointers before any other members are destroyed. |
846 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; | 847 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; |
847 // Unlike other classes, we need this as we need this to redirect a task | 848 // Unlike other classes, we need this as we need this to redirect a task |
848 // from IO thread to UI thread. | 849 // from IO thread to UI thread. |
849 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; | 850 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
850 }; | 851 }; |
851 | 852 |
852 } // namespace gdata | 853 } // namespace gdata |
853 | 854 |
854 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 855 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |