| 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV
IDER_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV
IDER_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV
IDER_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV
IDER_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 9 #include "chrome/common/extensions/api/file_system_provider.h" | 9 #include "chrome/common/extensions/api/file_system_provider.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 class FileSystemProviderMountFunction : public ChromeAsyncExtensionFunction { | 13 class FileSystemProviderMountFunction : public ChromeSyncExtensionFunction { |
| 14 public: | 14 public: |
| 15 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.mount", | 15 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.mount", |
| 16 FILESYSTEMPROVIDER_MOUNT) | 16 FILESYSTEMPROVIDER_MOUNT) |
| 17 | 17 |
| 18 protected: | 18 protected: |
| 19 virtual ~FileSystemProviderMountFunction() {} | 19 virtual ~FileSystemProviderMountFunction() {} |
| 20 virtual bool RunImpl() OVERRIDE; | 20 virtual bool RunImpl() OVERRIDE; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 class FileSystemProviderUnmountFunction : public ChromeAsyncExtensionFunction { | 23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction { |
| 24 public: | 24 public: |
| 25 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.unmount", | 25 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.unmount", |
| 26 FILESYSTEMPROVIDER_UNMOUNT) | 26 FILESYSTEMPROVIDER_UNMOUNT) |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 virtual ~FileSystemProviderUnmountFunction() {} | 29 virtual ~FileSystemProviderUnmountFunction() {} |
| 30 virtual bool RunImpl() OVERRIDE; | 30 virtual bool RunImpl() OVERRIDE; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 class FileSystemProviderInternalUnmountRequestedSuccessFunction | 33 class FileSystemProviderInternalUnmountRequestedSuccessFunction |
| 34 : public ChromeAsyncExtensionFunction { | 34 : public ChromeSyncExtensionFunction { |
| 35 public: | 35 public: |
| 36 DECLARE_EXTENSION_FUNCTION( | 36 DECLARE_EXTENSION_FUNCTION( |
| 37 "fileSystemProviderInternal.unmountRequestedSuccess", | 37 "fileSystemProviderInternal.unmountRequestedSuccess", |
| 38 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS) | 38 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS) |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} | 41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} |
| 42 virtual bool RunImpl() OVERRIDE; | 42 virtual bool RunImpl() OVERRIDE; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class FileSystemProviderInternalUnmountRequestedErrorFunction | 45 class FileSystemProviderInternalUnmountRequestedErrorFunction |
| 46 : public ChromeAsyncExtensionFunction { | 46 : public ChromeSyncExtensionFunction { |
| 47 public: | 47 public: |
| 48 DECLARE_EXTENSION_FUNCTION("fileSystemProviderInternal.unmountRequestedError", | 48 DECLARE_EXTENSION_FUNCTION("fileSystemProviderInternal.unmountRequestedError", |
| 49 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDERROR) | 49 FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDERROR) |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual ~FileSystemProviderInternalUnmountRequestedErrorFunction() {} | 52 virtual ~FileSystemProviderInternalUnmountRequestedErrorFunction() {} |
| 53 virtual bool RunImpl() OVERRIDE; | 53 virtual bool RunImpl() OVERRIDE; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace extensions | 56 } // namespace extensions |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ | 58 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ |
| OLD | NEW |