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 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 class FileSystemProviderMountFunction : public ChromeSyncExtensionFunction { | 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 RunSync() OVERRIDE; | 20 virtual bool RunSync() override; |
21 }; | 21 }; |
22 | 22 |
23 class FileSystemProviderUnmountFunction : public ChromeSyncExtensionFunction { | 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 RunSync() OVERRIDE; | 30 virtual bool RunSync() override; |
31 }; | 31 }; |
32 | 32 |
33 class FileSystemProviderGetAllFunction : public ChromeSyncExtensionFunction { | 33 class FileSystemProviderGetAllFunction : public ChromeSyncExtensionFunction { |
34 public: | 34 public: |
35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll", | 35 DECLARE_EXTENSION_FUNCTION("fileSystemProvider.getAll", |
36 FILESYSTEMPROVIDER_GETALL) | 36 FILESYSTEMPROVIDER_GETALL) |
37 | 37 |
38 protected: | 38 protected: |
39 virtual ~FileSystemProviderGetAllFunction() {} | 39 virtual ~FileSystemProviderGetAllFunction() {} |
40 virtual bool RunSync() OVERRIDE; | 40 virtual bool RunSync() override; |
41 }; | 41 }; |
42 | 42 |
43 class FileSystemProviderInternalUnmountRequestedSuccessFunction | 43 class FileSystemProviderInternalUnmountRequestedSuccessFunction |
44 : public FileSystemProviderInternalFunction { | 44 : public FileSystemProviderInternalFunction { |
45 public: | 45 public: |
46 DECLARE_EXTENSION_FUNCTION( | 46 DECLARE_EXTENSION_FUNCTION( |
47 "fileSystemProviderInternal.unmountRequestedSuccess", | 47 "fileSystemProviderInternal.unmountRequestedSuccess", |
48 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 48 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
49 | 49 |
50 protected: | 50 protected: |
51 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} | 51 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} |
52 virtual bool RunWhenValid() OVERRIDE; | 52 virtual bool RunWhenValid() override; |
53 }; | 53 }; |
54 | 54 |
55 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction | 55 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction |
56 : public FileSystemProviderInternalFunction { | 56 : public FileSystemProviderInternalFunction { |
57 public: | 57 public: |
58 DECLARE_EXTENSION_FUNCTION( | 58 DECLARE_EXTENSION_FUNCTION( |
59 "fileSystemProviderInternal.getMetadataRequestedSuccess", | 59 "fileSystemProviderInternal.getMetadataRequestedSuccess", |
60 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) | 60 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) |
61 | 61 |
62 protected: | 62 protected: |
63 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {} | 63 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {} |
64 virtual bool RunWhenValid() OVERRIDE; | 64 virtual bool RunWhenValid() override; |
65 }; | 65 }; |
66 | 66 |
67 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction | 67 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction |
68 : public FileSystemProviderInternalFunction { | 68 : public FileSystemProviderInternalFunction { |
69 public: | 69 public: |
70 DECLARE_EXTENSION_FUNCTION( | 70 DECLARE_EXTENSION_FUNCTION( |
71 "fileSystemProviderInternal.readDirectoryRequestedSuccess", | 71 "fileSystemProviderInternal.readDirectoryRequestedSuccess", |
72 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) | 72 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) |
73 | 73 |
74 protected: | 74 protected: |
75 virtual ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() {} | 75 virtual ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() {} |
76 virtual bool RunWhenValid() OVERRIDE; | 76 virtual bool RunWhenValid() override; |
77 }; | 77 }; |
78 | 78 |
79 class FileSystemProviderInternalReadFileRequestedSuccessFunction | 79 class FileSystemProviderInternalReadFileRequestedSuccessFunction |
80 : public FileSystemProviderInternalFunction { | 80 : public FileSystemProviderInternalFunction { |
81 public: | 81 public: |
82 DECLARE_EXTENSION_FUNCTION( | 82 DECLARE_EXTENSION_FUNCTION( |
83 "fileSystemProviderInternal.readFileRequestedSuccess", | 83 "fileSystemProviderInternal.readFileRequestedSuccess", |
84 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS) | 84 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS) |
85 | 85 |
86 protected: | 86 protected: |
87 virtual ~FileSystemProviderInternalReadFileRequestedSuccessFunction() {} | 87 virtual ~FileSystemProviderInternalReadFileRequestedSuccessFunction() {} |
88 virtual bool RunWhenValid() OVERRIDE; | 88 virtual bool RunWhenValid() override; |
89 }; | 89 }; |
90 | 90 |
91 class FileSystemProviderInternalOperationRequestedSuccessFunction | 91 class FileSystemProviderInternalOperationRequestedSuccessFunction |
92 : public FileSystemProviderInternalFunction { | 92 : public FileSystemProviderInternalFunction { |
93 public: | 93 public: |
94 DECLARE_EXTENSION_FUNCTION( | 94 DECLARE_EXTENSION_FUNCTION( |
95 "fileSystemProviderInternal.operationRequestedSuccess", | 95 "fileSystemProviderInternal.operationRequestedSuccess", |
96 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDSUCCESS) | 96 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDSUCCESS) |
97 | 97 |
98 protected: | 98 protected: |
99 virtual ~FileSystemProviderInternalOperationRequestedSuccessFunction() {} | 99 virtual ~FileSystemProviderInternalOperationRequestedSuccessFunction() {} |
100 virtual bool RunWhenValid() OVERRIDE; | 100 virtual bool RunWhenValid() override; |
101 }; | 101 }; |
102 | 102 |
103 class FileSystemProviderInternalOperationRequestedErrorFunction | 103 class FileSystemProviderInternalOperationRequestedErrorFunction |
104 : public FileSystemProviderInternalFunction { | 104 : public FileSystemProviderInternalFunction { |
105 public: | 105 public: |
106 DECLARE_EXTENSION_FUNCTION( | 106 DECLARE_EXTENSION_FUNCTION( |
107 "fileSystemProviderInternal.operationRequestedError", | 107 "fileSystemProviderInternal.operationRequestedError", |
108 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) | 108 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR) |
109 | 109 |
110 protected: | 110 protected: |
111 virtual ~FileSystemProviderInternalOperationRequestedErrorFunction() {} | 111 virtual ~FileSystemProviderInternalOperationRequestedErrorFunction() {} |
112 virtual bool RunWhenValid() OVERRIDE; | 112 virtual bool RunWhenValid() override; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace extensions | 115 } // namespace extensions |
116 | 116 |
117 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P
ROVIDER_API_H_ |
OLD | NEW |