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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ 7 8 namespace base { 9 class FilePath; 10 } 11 12 namespace drive { 13 namespace file_system { 14 15 // Passes notifications from Drive operations back to the file system. 16 class OperationObserver { 17 public: 18 // Sent when a content of a directory has been changed. 19 // |directory_path| is a virtual directory path representing the 20 // changed directory. 21 virtual void OnDirectoryChangedByOperation( 22 const base::FilePath& directory_path) = 0; 23 24 // Sent when a cache file is modified and upload is needed. 25 virtual void OnCacheFileUploadNeededByOperation( 26 const std::string& resource_id) = 0; 27 }; 28 29 } // namespace file_system 30 } // namespace drive 31 32 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ 33