| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 // Returns a provided file system attached to the the passed | 127 // Returns a provided file system attached to the the passed |
| 128 // |mount_point_name|. If not found, then returns NULL. | 128 // |mount_point_name|. If not found, then returns NULL. |
| 129 ProvidedFileSystemInterface* GetProvidedFileSystem( | 129 ProvidedFileSystemInterface* GetProvidedFileSystem( |
| 130 const std::string& mount_point_name); | 130 const std::string& mount_point_name); |
| 131 | 131 |
| 132 // Returns a list of information of all currently installed providing | 132 // Returns a list of information of all currently installed providing |
| 133 // extensions. | 133 // extensions. |
| 134 std::vector<ProvidingExtensionInfo> GetProvidingExtensionInfoList() const; | 134 std::vector<ProvidingExtensionInfo> GetProvidingExtensionInfoList() const; |
| 135 | 135 |
| 136 // Fills information of the specified providing extension and returns true. |
| 137 // If the extension is not a provider, or it doesn't exist, then false is |
| 138 // returned. |
| 139 bool GetProvidingExtensionInfo(const std::string& extension_id, |
| 140 ProvidingExtensionInfo* result) const; |
| 141 |
| 136 // Adds and removes observers. | 142 // Adds and removes observers. |
| 137 void AddObserver(Observer* observer); | 143 void AddObserver(Observer* observer); |
| 138 void RemoveObserver(Observer* observer); | 144 void RemoveObserver(Observer* observer); |
| 139 | 145 |
| 140 // Gets the singleton instance for the |context|. | 146 // Gets the singleton instance for the |context|. |
| 141 static Service* Get(content::BrowserContext* context); | 147 static Service* Get(content::BrowserContext* context); |
| 142 | 148 |
| 143 // extensions::ExtensionRegistryObserver overrides. | 149 // extensions::ExtensionRegistryObserver overrides. |
| 144 void OnExtensionUnloaded( | 150 void OnExtensionUnloaded( |
| 145 content::BrowserContext* browser_context, | 151 content::BrowserContext* browser_context, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 base::ThreadChecker thread_checker_; | 211 base::ThreadChecker thread_checker_; |
| 206 | 212 |
| 207 base::WeakPtrFactory<Service> weak_ptr_factory_; | 213 base::WeakPtrFactory<Service> weak_ptr_factory_; |
| 208 DISALLOW_COPY_AND_ASSIGN(Service); | 214 DISALLOW_COPY_AND_ASSIGN(Service); |
| 209 }; | 215 }; |
| 210 | 216 |
| 211 } // namespace file_system_provider | 217 } // namespace file_system_provider |
| 212 } // namespace chromeos | 218 } // namespace chromeos |
| 213 | 219 |
| 214 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ | 220 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_H_ |
| OLD | NEW |