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_DRIVE_FILE_SYSTEM_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_OBSERVER_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/drive/drive_file_error.h" | 8 #include "chrome/browser/chromeos/drive/drive_file_error.h" |
9 | 9 |
10 class FilePath; | 10 class FilePath; |
11 | 11 |
12 namespace gdata { | 12 namespace drive { |
13 | 13 |
14 // Interface for classes that need to observe events from classes implementing | 14 // Interface for classes that need to observe events from classes implementing |
15 // DriveFileSystemInterface. | 15 // DriveFileSystemInterface. |
16 // All events are notified on UI thread. | 16 // All events are notified on UI thread. |
17 class DriveFileSystemObserver { | 17 class DriveFileSystemObserver { |
18 public: | 18 public: |
19 // Triggered when a content of a directory has been changed. | 19 // Triggered when a content of a directory has been changed. |
20 // |directory_path| is a virtual directory path (/drive/...) representing | 20 // |directory_path| is a virtual directory path (/drive/...) representing |
21 // changed directory. | 21 // changed directory. |
22 virtual void OnDirectoryChanged(const FilePath& directory_path) { | 22 virtual void OnDirectoryChanged(const FilePath& directory_path) { |
(...skipping 17 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 // Triggered when the file system is being unmounted. | 42 // Triggered when the file system is being unmounted. |
43 virtual void OnFileSystemBeingUnmounted() { | 43 virtual void OnFileSystemBeingUnmounted() { |
44 } | 44 } |
45 | 45 |
46 protected: | 46 protected: |
47 virtual ~DriveFileSystemObserver() {} | 47 virtual ~DriveFileSystemObserver() {} |
48 }; | 48 }; |
49 | 49 |
50 } // namespace gdata | 50 } // namespace drive |
51 | 51 |
52 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_OBSERVER_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_OBSERVER_H_ |
OLD | NEW |