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/chromeos/extensions/file_system_provider/provider_funct
ion.h" | 8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_funct
ion.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class FileSystemProviderInternalUnmountRequestedSuccessFunction | 33 class FileSystemProviderInternalUnmountRequestedSuccessFunction |
34 : public FileSystemProviderInternalFunction { | 34 : public FileSystemProviderInternalFunction { |
35 public: | 35 public: |
36 DECLARE_EXTENSION_FUNCTION( | 36 DECLARE_EXTENSION_FUNCTION( |
37 "fileSystemProviderInternal.unmountRequestedSuccess", | 37 "fileSystemProviderInternal.unmountRequestedSuccess", |
38 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 38 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
39 | 39 |
40 protected: | 40 protected: |
41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} | 41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} |
42 virtual bool RunSync() OVERRIDE; | 42 virtual bool RunWhenValid() OVERRIDE; |
43 }; | 43 }; |
44 | 44 |
45 class FileSystemProviderInternalUnmountRequestedErrorFunction | 45 class FileSystemProviderInternalUnmountRequestedErrorFunction |
46 : public FileSystemProviderInternalFunction { | 46 : public FileSystemProviderInternalFunction { |
47 public: | 47 public: |
48 DECLARE_EXTENSION_FUNCTION( | 48 DECLARE_EXTENSION_FUNCTION( |
49 "fileSystemProviderInternal.unmountRequestedError", | 49 "fileSystemProviderInternal.unmountRequestedError", |
50 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR) | 50 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR) |
51 | 51 |
52 protected: | 52 protected: |
53 virtual ~FileSystemProviderInternalUnmountRequestedErrorFunction() {} | 53 virtual ~FileSystemProviderInternalUnmountRequestedErrorFunction() {} |
54 virtual bool RunSync() OVERRIDE; | 54 virtual bool RunWhenValid() OVERRIDE; |
55 }; | 55 }; |
56 | 56 |
57 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction | 57 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction |
58 : public FileSystemProviderInternalFunction { | 58 : public FileSystemProviderInternalFunction { |
59 public: | 59 public: |
60 DECLARE_EXTENSION_FUNCTION( | 60 DECLARE_EXTENSION_FUNCTION( |
61 "fileSystemProviderInternal.getMetadataRequestedSuccess", | 61 "fileSystemProviderInternal.getMetadataRequestedSuccess", |
62 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 62 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
63 | 63 |
64 protected: | 64 protected: |
65 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {} | 65 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {} |
66 virtual bool RunSync() OVERRIDE; | 66 virtual bool RunWhenValid() OVERRIDE; |
67 }; | 67 }; |
68 | 68 |
69 class FileSystemProviderInternalGetMetadataRequestedErrorFunction | 69 class FileSystemProviderInternalGetMetadataRequestedErrorFunction |
70 : public FileSystemProviderInternalFunction { | 70 : public FileSystemProviderInternalFunction { |
71 public: | 71 public: |
72 DECLARE_EXTENSION_FUNCTION( | 72 DECLARE_EXTENSION_FUNCTION( |
73 "fileSystemProviderInternal.getMetadataRequestedError", | 73 "fileSystemProviderInternal.getMetadataRequestedError", |
74 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR) | 74 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR) |
75 | 75 |
76 protected: | 76 protected: |
77 virtual ~FileSystemProviderInternalGetMetadataRequestedErrorFunction() {} | 77 virtual ~FileSystemProviderInternalGetMetadataRequestedErrorFunction() {} |
78 virtual bool RunSync() OVERRIDE; | 78 virtual bool RunWhenValid() OVERRIDE; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace extensions | 81 } // namespace extensions |
82 | 82 |
83 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ |
OLD | NEW |