OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 protected: | 226 protected: |
227 virtual ~UnmountVolumeFunction(); | 227 virtual ~UnmountVolumeFunction(); |
228 | 228 |
229 virtual bool RunImpl() OVERRIDE; | 229 virtual bool RunImpl() OVERRIDE; |
230 | 230 |
231 private: | 231 private: |
232 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.unmountVolume"); | 232 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.unmountVolume"); |
233 }; | 233 }; |
234 | 234 |
| 235 // Formats Device given its mount path. |
| 236 class FormatDeviceFunction |
| 237 : public SyncExtensionFunction { |
| 238 public: |
| 239 FormatDeviceFunction(); |
| 240 |
| 241 protected: |
| 242 virtual ~FormatDeviceFunction(); |
| 243 |
| 244 virtual bool RunImpl() OVERRIDE; |
| 245 |
| 246 private: |
| 247 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); |
| 248 }; |
| 249 |
235 // Retrieves devices meta-data. Expects volume's device path as an argument. | 250 // Retrieves devices meta-data. Expects volume's device path as an argument. |
236 class GetVolumeMetadataFunction | 251 class GetVolumeMetadataFunction |
237 : public SyncExtensionFunction { | 252 : public SyncExtensionFunction { |
238 public: | 253 public: |
239 GetVolumeMetadataFunction(); | 254 GetVolumeMetadataFunction(); |
240 | 255 |
241 protected: | 256 protected: |
242 virtual ~GetVolumeMetadataFunction(); | 257 virtual ~GetVolumeMetadataFunction(); |
243 | 258 |
244 virtual bool RunImpl() OVERRIDE; | 259 virtual bool RunImpl() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
260 virtual ~FileDialogStringsFunction() {} | 275 virtual ~FileDialogStringsFunction() {} |
261 | 276 |
262 // SyncExtensionFunction overrides. | 277 // SyncExtensionFunction overrides. |
263 virtual bool RunImpl() OVERRIDE; | 278 virtual bool RunImpl() OVERRIDE; |
264 | 279 |
265 private: | 280 private: |
266 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 281 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
267 }; | 282 }; |
268 | 283 |
269 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 284 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |