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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ProvidingExtensionInfo* result) const; | 140 ProvidingExtensionInfo* result) const; |
141 | 141 |
142 // Adds and removes observers. | 142 // Adds and removes observers. |
143 void AddObserver(Observer* observer); | 143 void AddObserver(Observer* observer); |
144 void RemoveObserver(Observer* observer); | 144 void RemoveObserver(Observer* observer); |
145 | 145 |
146 // Gets the singleton instance for the |context|. | 146 // Gets the singleton instance for the |context|. |
147 static Service* Get(content::BrowserContext* context); | 147 static Service* Get(content::BrowserContext* context); |
148 | 148 |
149 // extensions::ExtensionRegistryObserver overrides. | 149 // extensions::ExtensionRegistryObserver overrides. |
150 void OnExtensionUnloaded( | 150 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
151 content::BrowserContext* browser_context, | 151 const extensions::Extension* extension, |
152 const extensions::Extension* extension, | 152 extensions::UnloadedExtensionReason reason) override; |
153 extensions::UnloadedExtensionInfo::Reason reason) override; | |
154 void OnExtensionLoaded(content::BrowserContext* browser_context, | 153 void OnExtensionLoaded(content::BrowserContext* browser_context, |
155 const extensions::Extension* extension) override; | 154 const extensions::Extension* extension) override; |
156 | 155 |
157 // ProvidedFileSystemInterface::Observer overrides. | 156 // ProvidedFileSystemInterface::Observer overrides. |
158 void OnWatcherChanged(const ProvidedFileSystemInfo& file_system_info, | 157 void OnWatcherChanged(const ProvidedFileSystemInfo& file_system_info, |
159 const Watcher& watcher, | 158 const Watcher& watcher, |
160 storage::WatcherManager::ChangeType change_type, | 159 storage::WatcherManager::ChangeType change_type, |
161 const ProvidedFileSystemObserver::Changes& changes, | 160 const ProvidedFileSystemObserver::Changes& changes, |
162 const base::Closure& callback) override; | 161 const base::Closure& callback) override; |
163 void OnWatcherTagUpdated(const ProvidedFileSystemInfo& file_system_info, | 162 void OnWatcherTagUpdated(const ProvidedFileSystemInfo& file_system_info, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 base::ThreadChecker thread_checker_; | 207 base::ThreadChecker thread_checker_; |
209 | 208 |
210 base::WeakPtrFactory<Service> weak_ptr_factory_; | 209 base::WeakPtrFactory<Service> weak_ptr_factory_; |
211 DISALLOW_COPY_AND_ASSIGN(Service); | 210 DISALLOW_COPY_AND_ASSIGN(Service); |
212 }; | 211 }; |
213 | 212 |
214 } // namespace file_system_provider | 213 } // namespace file_system_provider |
215 } // namespace chromeos | 214 } // namespace chromeos |
216 | 215 |
217 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ | 216 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ |
OLD | NEW |