| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 ~FileManagerPrivateConfigureVolumeFunction() override {} | 223 ~FileManagerPrivateConfigureVolumeFunction() override {} |
| 224 | 224 |
| 225 private: | 225 private: |
| 226 ResponseAction Run() override; | 226 ResponseAction Run() override; |
| 227 void OnCompleted(base::File::Error result); | 227 void OnCompleted(base::File::Error result); |
| 228 | 228 |
| 229 const ChromeExtensionFunctionDetails chrome_details_; | 229 const ChromeExtensionFunctionDetails chrome_details_; |
| 230 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateConfigureVolumeFunction); | 230 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateConfigureVolumeFunction); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 // Implements the chrome.fileManagerPrivate.getEntryActions method. | 233 // Implements the chrome.fileManagerPrivate.getCustomActions method. |
| 234 class FileManagerPrivateInternalGetEntryActionsFunction | 234 class FileManagerPrivateInternalGetCustomActionsFunction |
| 235 : public UIThreadExtensionFunction { | 235 : public UIThreadExtensionFunction { |
| 236 public: | 236 public: |
| 237 FileManagerPrivateInternalGetEntryActionsFunction(); | 237 FileManagerPrivateInternalGetCustomActionsFunction(); |
| 238 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.getEntryActions", | 238 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.getCustomActions", |
| 239 FILEMANAGERPRIVATEINTERNAL_GETENTRYACTIONS) | 239 FILEMANAGERPRIVATEINTERNAL_GETCUSTOMACTIONS) |
| 240 protected: | 240 protected: |
| 241 ~FileManagerPrivateInternalGetEntryActionsFunction() override {} | 241 ~FileManagerPrivateInternalGetCustomActionsFunction() override {} |
| 242 | 242 |
| 243 private: | 243 private: |
| 244 ResponseAction Run() override; | 244 ResponseAction Run() override; |
| 245 void OnCompleted(const chromeos::file_system_provider::Actions& actions, | 245 void OnCompleted(const chromeos::file_system_provider::Actions& actions, |
| 246 base::File::Error result); | 246 base::File::Error result); |
| 247 | 247 |
| 248 const ChromeExtensionFunctionDetails chrome_details_; | 248 const ChromeExtensionFunctionDetails chrome_details_; |
| 249 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalGetEntryActionsFunction); | 249 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateInternalGetCustomActionsFunction); |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 // Implements the chrome.fileManagerPrivate.executeEntryAction method. | 252 // Implements the chrome.fileManagerPrivate.executeCustomAction method. |
| 253 class FileManagerPrivateInternalExecuteEntryActionFunction | 253 class FileManagerPrivateInternalExecuteCustomActionFunction |
| 254 : public UIThreadExtensionFunction { | 254 : public UIThreadExtensionFunction { |
| 255 public: | 255 public: |
| 256 FileManagerPrivateInternalExecuteEntryActionFunction(); | 256 FileManagerPrivateInternalExecuteCustomActionFunction(); |
| 257 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.executeEntryAction", | 257 DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.executeCustomAction", |
| 258 FILEMANAGERPRIVATEINTERNAL_EXECUTEENTRYACTION) | 258 FILEMANAGERPRIVATEINTERNAL_EXECUTECUSTOMACTION) |
| 259 protected: | 259 protected: |
| 260 ~FileManagerPrivateInternalExecuteEntryActionFunction() override {} | 260 ~FileManagerPrivateInternalExecuteCustomActionFunction() override {} |
| 261 | 261 |
| 262 private: | 262 private: |
| 263 ResponseAction Run() override; | 263 ResponseAction Run() override; |
| 264 void OnCompleted(base::File::Error result); | 264 void OnCompleted(base::File::Error result); |
| 265 | 265 |
| 266 const ChromeExtensionFunctionDetails chrome_details_; | 266 const ChromeExtensionFunctionDetails chrome_details_; |
| 267 DISALLOW_COPY_AND_ASSIGN( | 267 DISALLOW_COPY_AND_ASSIGN( |
| 268 FileManagerPrivateInternalExecuteEntryActionFunction); | 268 FileManagerPrivateInternalExecuteCustomActionFunction); |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace extensions | 271 } // namespace extensions |
| 272 | 272 |
| 273 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 273 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| OLD | NEW |