| 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 // ProvidedFileSystemInterface::Observer overrides. | 132 // ProvidedFileSystemInterface::Observer overrides. |
| 133 virtual void OnObservedEntryChanged( | 133 virtual void OnObservedEntryChanged( |
| 134 const ProvidedFileSystemInfo& file_system_info, | 134 const ProvidedFileSystemInfo& file_system_info, |
| 135 const base::FilePath& observed_path, | 135 const base::FilePath& observed_path, |
| 136 ProvidedFileSystemObserver::ChangeType change_type, | 136 ProvidedFileSystemObserver::ChangeType change_type, |
| 137 const ProvidedFileSystemObserver::ChildChanges& child_changes, | 137 const ProvidedFileSystemObserver::ChildChanges& child_changes, |
| 138 const base::Closure& callback) override; | 138 const base::Closure& callback) override; |
| 139 virtual void OnObservedEntryTagUpdated( | 139 virtual void OnObservedEntryTagUpdated( |
| 140 const ProvidedFileSystemInfo& file_system_info, | 140 const ProvidedFileSystemInfo& file_system_info, |
| 141 const base::FilePath& observed_path) override; | 141 const base::FilePath& observed_path, |
| 142 const std::string& tag) override; |
| 142 virtual void OnObservedEntryListChanged( | 143 virtual void OnObservedEntryListChanged( |
| 143 const ProvidedFileSystemInfo& file_system_info) override; | 144 const ProvidedFileSystemInfo& file_system_info, |
| 145 const ObservedEntries& observed_entries) override; |
| 144 | 146 |
| 145 private: | 147 private: |
| 146 // Key is a pair of an extension id and file system id, which makes it | 148 // Key is a pair of an extension id and file system id, which makes it |
| 147 // unique among the entire service instance. | 149 // unique among the entire service instance. |
| 148 typedef std::pair<std::string, std::string> FileSystemKey; | 150 typedef std::pair<std::string, std::string> FileSystemKey; |
| 149 | 151 |
| 150 typedef std::map<FileSystemKey, ProvidedFileSystemInterface*> | 152 typedef std::map<FileSystemKey, ProvidedFileSystemInterface*> |
| 151 ProvidedFileSystemMap; | 153 ProvidedFileSystemMap; |
| 152 typedef std::map<std::string, FileSystemKey> MountPointNameToKeyMap; | 154 typedef std::map<std::string, FileSystemKey> MountPointNameToKeyMap; |
| 153 | 155 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 178 base::ThreadChecker thread_checker_; | 180 base::ThreadChecker thread_checker_; |
| 179 base::WeakPtrFactory<Service> weak_ptr_factory_; | 181 base::WeakPtrFactory<Service> weak_ptr_factory_; |
| 180 | 182 |
| 181 DISALLOW_COPY_AND_ASSIGN(Service); | 183 DISALLOW_COPY_AND_ASSIGN(Service); |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace file_system_provider | 186 } // namespace file_system_provider |
| 185 } // namespace chromeos | 187 } // namespace chromeos |
| 186 | 188 |
| 187 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ | 189 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ |
| OLD | NEW |