| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV
ER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV
ER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV
ER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBSERV
ER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ChangeType change_type; | 39 ChangeType change_type; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Called when an observed entry is changed, including removals. |callback| | 42 // Called when an observed entry is changed, including removals. |callback| |
| 43 // *must* be called after the entry change is handled. Once all observers | 43 // *must* be called after the entry change is handled. Once all observers |
| 44 // call the callback, the tag will be updated and OnObservedEntryTagUpdated | 44 // call the callback, the tag will be updated and OnObservedEntryTagUpdated |
| 45 // called. The reference to |child_changes| is valid at least as long as | 45 // called. The reference to |child_changes| is valid at least as long as |
| 46 // |callback|. | 46 // |callback|. |
| 47 virtual void OnObservedEntryChanged( | 47 virtual void OnObservedEntryChanged( |
| 48 const ProvidedFileSystemInfo& file_system_info, | 48 const ProvidedFileSystemInfo& file_system_info, |
| 49 const base::FilePath& observed_path, | 49 const ObservedEntry& observed_entry, |
| 50 ChangeType change_type, | 50 ChangeType change_type, |
| 51 const ChildChanges& child_changes, | 51 const ChildChanges& child_changes, |
| 52 const base::Closure& callback) = 0; | 52 const base::Closure& callback) = 0; |
| 53 | 53 |
| 54 // Called after the tag value is updated for the observed entry. | 54 // Called after the tag value is updated for the observed entry. |
| 55 virtual void OnObservedEntryTagUpdated( | 55 virtual void OnObservedEntryTagUpdated( |
| 56 const ProvidedFileSystemInfo& file_system_info, | 56 const ProvidedFileSystemInfo& file_system_info, |
| 57 const base::FilePath& observed_path, | 57 const ObservedEntry& observed_entry) = 0; |
| 58 const std::string& tag) = 0; | |
| 59 | 58 |
| 60 // Called after the list of observed entries is changed. | 59 // Called after the list of observed entries is changed. |
| 61 virtual void OnObservedEntryListChanged( | 60 virtual void OnObservedEntryListChanged( |
| 62 const ProvidedFileSystemInfo& file_system_info, | 61 const ProvidedFileSystemInfo& file_system_info, |
| 63 const ObservedEntries& observed_entries) = 0; | 62 const ObservedEntries& observed_entries) = 0; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace file_system_provider | 65 } // namespace file_system_provider |
| 67 } // namespace chromeos | 66 } // namespace chromeos |
| 68 | 67 |
| 69 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBS
ERVER_H_ | 68 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_OBS
ERVER_H_ |
| OLD | NEW |