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

Unified Diff: chrome/browser/chromeos/drive/drive_sync_client.h

Issue 14348013: Remove legacy in DriveSyncClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix + alpha Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..25a352a8d257606d05b0146659d24a9f652ac6c5 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,17 +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
- // cache (ex. store a file to the cache when the file is downloaded).
- DriveSyncClient(Profile* profile,
- DriveFileSystemInterface* file_system,
- DriveCache* cache);
+ DriveSyncClient(DriveFileSystemInterface* file_system, DriveCache* cache);
virtual ~DriveSyncClient();
- // Initializes the DriveSyncClient.
- void Initialize();
-
// DriveFileSystemInterface::Observer overrides.
virtual void OnInitialLoadFinished() OVERRIDE;
virtual void OnFeedFromServerLoaded() OVERRIDE;
@@ -150,7 +136,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.
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698