OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ |
7 | 7 |
| 8 namespace base { |
8 class FilePath; | 9 class FilePath; |
| 10 } |
9 | 11 |
10 namespace drive { | 12 namespace drive { |
11 namespace file_system { | 13 namespace file_system { |
12 | 14 |
13 // Passes notifications from Drive operations back to the file system. | 15 // Passes notifications from Drive operations back to the file system. |
14 class OperationObserver { | 16 class OperationObserver { |
15 public: | 17 public: |
16 // Sent when a content of a directory has been changed. | 18 // Sent when a content of a directory has been changed. |
17 // |directory_path| is a virtual directory path representing the | 19 // |directory_path| is a virtual directory path representing the |
18 // changed directory. | 20 // changed directory. |
19 virtual void OnDirectoryChangedByOperation( | 21 virtual void OnDirectoryChangedByOperation( |
20 const FilePath& directory_path) = 0; | 22 const base::FilePath& directory_path) = 0; |
21 }; | 23 }; |
22 | 24 |
23 } // namespace file_system | 25 } // namespace file_system |
24 } // namespace drive | 26 } // namespace drive |
25 | 27 |
26 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ | 28 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_OPERATION_OBSERVER_H_ |
OLD | NEW |