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

Unified Diff: chrome/browser/chromeos/drive/file_system/operation_delegate.h

Issue 1215503010: OBSOLETE: Move (most of) chrome/browser/chromeos/drive into components/drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-componentize-service
Patch Set: Created 5 years, 6 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
Index: chrome/browser/chromeos/drive/file_system/operation_delegate.h
diff --git a/chrome/browser/chromeos/drive/file_system/operation_delegate.h b/chrome/browser/chromeos/drive/file_system/operation_delegate.h
deleted file mode 100644
index eaa11a9f9fc966730dd0851b3627903f732a8026..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/drive/file_system/operation_delegate.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_DELEGATE_H_
-#define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_DELEGATE_H_
-
-#include "chrome/browser/chromeos/drive/file_errors.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace drive {
-
-struct ClientContext;
-class FileChange;
-
-namespace file_system {
-
-// Error type of sync client.
-// Keep it synced with "DriveSyncErrorType" in file_manager_private.idl.
-enum DriveSyncErrorType {
- // Request to delete a file without permission.
- DRIVE_SYNC_ERROR_DELETE_WITHOUT_PERMISSION,
- // Google Drive is temporary unavailable.
- DRIVE_SYNC_ERROR_SERVICE_UNAVAILABLE,
- // Errors other than above ones. No fallback is provided for the error.
- DRIVE_SYNC_ERROR_MISC,
-};
-
-// Passes notifications from Drive operations back to the file system.
-class OperationDelegate {
- public:
- // Sent when a content of a directory has been changed.
- // |directory_path| is a virtual directory path representing the
- // changed directory.
- virtual void OnFileChangedByOperation(const FileChange& changed_files) {}
-
- // Sent when an entry is updated and sync is needed. The passed |context| is
- // used for syncing.
- virtual void OnEntryUpdatedByOperation(const ClientContext& context,
- const std::string& local_id) {}
-
- // Sent when a specific drive sync error occurred.
- // |local_id| is the local ID of the resource entry.
- virtual void OnDriveSyncError(DriveSyncErrorType type,
- const std::string& local_id) {}
-
- // Waits for the sync task to complete and runs the callback.
- // Returns false if no task is found for the spcecified ID.
- virtual bool WaitForSyncComplete(const std::string& local_id,
- const FileOperationCallback& callback);
-};
-
-} // namespace file_system
-} // namespace drive
-
-#endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698