Chromium Code Reviews| Index: chrome/browser/chromeos/drive/drive_sync_client.h |
| diff --git a/chrome/browser/chromeos/drive/drive_sync_client.h b/chrome/browser/chromeos/drive/drive_sync_client.h |
| index 435e072412864b9e5cecd81ea842f81e03bdd4d3..7acb2266d6ba0bc1385b31ca5dd329ceca9ae9a7 100644 |
| --- a/chrome/browser/chromeos/drive/drive_sync_client.h |
| +++ b/chrome/browser/chromeos/drive/drive_sync_client.h |
| @@ -5,27 +5,22 @@ |
| #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYNC_CLIENT_H_ |
| #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYNC_CLIENT_H_ |
| -#include <deque> |
| +#include <set> |
| #include <string> |
| #include <vector> |
| -#include "base/callback_forward.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/time.h" |
| -#include "chrome/browser/chromeos/drive/drive_cache.h" |
| #include "chrome/browser/chromeos/drive/drive_cache_observer.h" |
| #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" |
| #include "chrome/browser/chromeos/drive/drive_resource_metadata.h" |
| -#include "net/base/network_change_notifier.h" |
| - |
| -class Profile; |
| -class PrefChangeRegistrar; |
| namespace drive { |
| +class DriveCache; |
| +class DriveCacheEntry; |
| class DriveEntryProto; |
| class DriveFileSystemInterface; |
| -class DrivePrefetcher; |
| // The DriveSyncClient is used to synchronize pinned files on Drive and the |
| // cache on the local drive. The sync client works as follows. |
| @@ -40,9 +35,8 @@ class DrivePrefetcher; |
| // If the user logs out before fetching of the pinned files is complete, this |
| // client resumes fetching operations next time the user logs in, based on |
| // the states left in the cache. |
| -class DriveSyncClient |
| - : public DriveFileSystemObserver, |
| - public DriveCacheObserver { |
| +class DriveSyncClient : public DriveFileSystemObserver, |
| + public DriveCacheObserver { |
| public: |
| // Types of sync tasks. |
| enum SyncType { |
| @@ -50,11 +44,9 @@ class DriveSyncClient |
| UPLOAD, // Upload a file to the Drive server. |
| }; |
| - // |profile| is used to access user preferences. |
| // |file_system| is used access the |
|
hashimoto
2013/04/19 03:59:06
nit: This comment is quite wrong. (what is used to
kinaba
2013/04/19 04:10:17
Done.
|
| // cache (ex. store a file to the cache when the file is downloaded). |
| - DriveSyncClient(Profile* profile, |
| - DriveFileSystemInterface* file_system, |
| + DriveSyncClient(DriveFileSystemInterface* file_system, |
| DriveCache* cache); |
| virtual ~DriveSyncClient(); |
| @@ -150,7 +142,6 @@ class DriveSyncClient |
| void OnUploadFileComplete(const std::string& resource_id, |
| DriveFileError error); |
| - Profile* profile_; |
| DriveFileSystemInterface* file_system_; // Owned by DriveSystemService. |
| DriveCache* cache_; // Owned by DriveSystemService. |