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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 protected: | 271 protected: |
272 virtual ~GetMountPointsFunction(); | 272 virtual ~GetMountPointsFunction(); |
273 | 273 |
274 virtual bool RunImpl() OVERRIDE; | 274 virtual bool RunImpl() OVERRIDE; |
275 | 275 |
276 private: | 276 private: |
277 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints"); | 277 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints"); |
278 }; | 278 }; |
279 | 279 |
| 280 // Formats Device given its mount path. |
| 281 class FormatDeviceFunction |
| 282 : public SyncExtensionFunction { |
| 283 public: |
| 284 FormatDeviceFunction(); |
| 285 |
| 286 protected: |
| 287 virtual ~FormatDeviceFunction(); |
| 288 |
| 289 virtual bool RunImpl() OVERRIDE; |
| 290 |
| 291 private: |
| 292 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); |
| 293 }; |
| 294 |
280 // Retrieves devices meta-data. Expects volume's device path as an argument. | 295 // Retrieves devices meta-data. Expects volume's device path as an argument. |
281 class GetVolumeMetadataFunction | 296 class GetVolumeMetadataFunction |
282 : public SyncExtensionFunction { | 297 : public SyncExtensionFunction { |
283 public: | 298 public: |
284 GetVolumeMetadataFunction(); | 299 GetVolumeMetadataFunction(); |
285 | 300 |
286 protected: | 301 protected: |
287 virtual ~GetVolumeMetadataFunction(); | 302 virtual ~GetVolumeMetadataFunction(); |
288 | 303 |
289 virtual bool RunImpl() OVERRIDE; | 304 virtual bool RunImpl() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
305 virtual ~FileDialogStringsFunction() {} | 320 virtual ~FileDialogStringsFunction() {} |
306 | 321 |
307 // SyncExtensionFunction overrides. | 322 // SyncExtensionFunction overrides. |
308 virtual bool RunImpl() OVERRIDE; | 323 virtual bool RunImpl() OVERRIDE; |
309 | 324 |
310 private: | 325 private: |
311 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 326 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
312 }; | 327 }; |
313 | 328 |
314 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 329 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |