Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync_file_system / drive_backend / sync_worker_interface.h
index e4d061a..cf32f51 100644 (file)
@@ -85,7 +85,7 @@ class SyncWorkerInterface {
   virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0;
   virtual scoped_ptr<base::ListValue> DumpDatabase() = 0;
   virtual void SetSyncEnabled(bool enabled) = 0;
-  virtual void PromoteDemotedChanges() = 0;
+  virtual void PromoteDemotedChanges(const base::Closure& callback) = 0;
 
   // See LocalChangeProcessor for the details.
   virtual void ApplyLocalChange(
@@ -95,21 +95,9 @@ class SyncWorkerInterface {
       const fileapi::FileSystemURL& url,
       const SyncStatusCallback& callback) = 0;
 
-  // See drive::DriveNotificationObserver for the details.
-  virtual void OnNotificationReceived() = 0;
-
-  // See drive::DriveServiceObserver for the details.
-  virtual void OnReadyToSendRequests() = 0;
-  virtual void OnRefreshTokenInvalid() = 0;
-
-  // See net::NetworkChangeNotifier::NetworkChangeObserver for the details.
-  virtual void OnNetworkChanged(
-      net::NetworkChangeNotifier::ConnectionType type) = 0;
-
-  virtual drive::DriveServiceInterface* GetDriveService() = 0;
-  virtual drive::DriveUploaderInterface* GetDriveUploader() = 0;
-  virtual MetadataDatabase* GetMetadataDatabase() = 0;
-  virtual SyncTaskManager* GetSyncTaskManager() = 0;
+  virtual void ActivateService(RemoteServiceState service_state,
+                               const std::string& description) = 0;
+  virtual void DeactivateService(const std::string& description) = 0;
 
   virtual void DetachFromSequence() = 0;
 
@@ -118,9 +106,6 @@ class SyncWorkerInterface {
  private:
   friend class SyncEngineTest;
 
-  // TODO(peria): Remove this interface after making FakeSyncWorker class.
-  virtual void SetHasRefreshToken(bool has_refresh_token) = 0;
-
   DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface);
 };