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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 | 267 |
268 protected: | 268 protected: |
269 virtual ~GetMountPointsFunction(); | 269 virtual ~GetMountPointsFunction(); |
270 | 270 |
271 virtual bool RunImpl() OVERRIDE; | 271 virtual bool RunImpl() OVERRIDE; |
272 | 272 |
273 private: | 273 private: |
274 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints"); | 274 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getMountPoints"); |
275 }; | 275 }; |
276 | 276 |
277 // Formats Device given its mount path. | |
278 class FormatDeviceFunction | |
279 : public SyncExtensionFunction { | |
asargent_no_longer_on_chrome
2011/07/29 23:14:19
Note that if you wanted to have a callback, and wa
sidor.dev
2011/07/29 23:28:27
Formatting is quite separated from UI, so callback
| |
280 public: | |
281 FormatDeviceFunction(); | |
282 | |
283 protected: | |
284 virtual ~FormatDeviceFunction(); | |
285 | |
286 virtual bool RunImpl() OVERRIDE; | |
287 | |
288 private: | |
289 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); | |
290 }; | |
291 | |
277 // Retrieves devices meta-data. Expects volume's device path as an argument. | 292 // Retrieves devices meta-data. Expects volume's device path as an argument. |
278 class GetVolumeMetadataFunction | 293 class GetVolumeMetadataFunction |
279 : public SyncExtensionFunction { | 294 : public SyncExtensionFunction { |
280 public: | 295 public: |
281 GetVolumeMetadataFunction(); | 296 GetVolumeMetadataFunction(); |
282 | 297 |
283 protected: | 298 protected: |
284 virtual ~GetVolumeMetadataFunction(); | 299 virtual ~GetVolumeMetadataFunction(); |
285 | 300 |
286 virtual bool RunImpl() OVERRIDE; | 301 virtual bool RunImpl() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... | |
302 virtual ~FileDialogStringsFunction() {} | 317 virtual ~FileDialogStringsFunction() {} |
303 | 318 |
304 // SyncExtensionFunction overrides. | 319 // SyncExtensionFunction overrides. |
305 virtual bool RunImpl() OVERRIDE; | 320 virtual bool RunImpl() OVERRIDE; |
306 | 321 |
307 private: | 322 private: |
308 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 323 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
309 }; | 324 }; |
310 | 325 |
311 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 326 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |