| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides miscellaneous API functions, which don't belong to | 5 // This file provides miscellaneous API functions, which don't belong to |
| 6 // other files. | 6 // other files. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| 10 | 10 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 FILEMANAGERPRIVATE_ADDPROVIDEDFILESYSTEM) | 218 FILEMANAGERPRIVATE_ADDPROVIDEDFILESYSTEM) |
| 219 protected: | 219 protected: |
| 220 ~FileManagerPrivateAddProvidedFileSystemFunction() override {} | 220 ~FileManagerPrivateAddProvidedFileSystemFunction() override {} |
| 221 | 221 |
| 222 private: | 222 private: |
| 223 ResponseAction Run() override; | 223 ResponseAction Run() override; |
| 224 const ChromeExtensionFunctionDetails chrome_details_; | 224 const ChromeExtensionFunctionDetails chrome_details_; |
| 225 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateAddProvidedFileSystemFunction); | 225 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateAddProvidedFileSystemFunction); |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 // Implements the chrome.fileManagerPrivate.addProvidedFileSystem method. | 228 // Implements the chrome.fileManagerPrivate.configureVolume method. |
| 229 class FileManagerPrivateConfigureProvidedFileSystemFunction | 229 class FileManagerPrivateConfigureVolumeFunction |
| 230 : public UIThreadExtensionFunction { | 230 : public UIThreadExtensionFunction { |
| 231 public: | 231 public: |
| 232 FileManagerPrivateConfigureProvidedFileSystemFunction(); | 232 FileManagerPrivateConfigureVolumeFunction(); |
| 233 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.configureProvidedFileSystem", | 233 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.configureVolume", |
| 234 FILEMANAGERPRIVATE_CONFIGUREPROVIDEDFILESYSTEM) | 234 FILEMANAGERPRIVATE_CONFIGUREVOLUME) |
| 235 protected: | 235 protected: |
| 236 ~FileManagerPrivateConfigureProvidedFileSystemFunction() override {} | 236 ~FileManagerPrivateConfigureVolumeFunction() override {} |
| 237 | 237 |
| 238 private: | 238 private: |
| 239 ResponseAction Run() override; | 239 ResponseAction Run() override; |
| 240 void OnCompleted(base::File::Error result); | 240 void OnCompleted(base::File::Error result); |
| 241 | 241 |
| 242 const ChromeExtensionFunctionDetails chrome_details_; | 242 const ChromeExtensionFunctionDetails chrome_details_; |
| 243 DISALLOW_COPY_AND_ASSIGN( | 243 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateConfigureVolumeFunction); |
| 244 FileManagerPrivateConfigureProvidedFileSystemFunction); | |
| 245 }; | 244 }; |
| 246 | 245 |
| 247 } // namespace extensions | 246 } // namespace extensions |
| 248 | 247 |
| 249 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 248 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| OLD | NEW |