| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 virtual bool RunImpl() OVERRIDE; | 289 virtual bool RunImpl() OVERRIDE; |
| 290 | 290 |
| 291 // FileBrowserFunction overrides. | 291 // FileBrowserFunction overrides. |
| 292 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, | 292 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, |
| 293 void* context) OVERRIDE; | 293 void* context) OVERRIDE; |
| 294 | 294 |
| 295 private: | 295 private: |
| 296 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); | 296 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatDevice"); |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 // Formats Device given its file path. |
| 300 class FormatUnmountedDeviceFunction |
| 301 : public SyncExtensionFunction { |
| 302 public: |
| 303 FormatUnmountedDeviceFunction(); |
| 304 |
| 305 protected: |
| 306 virtual ~FormatUnmountedDeviceFunction(); |
| 307 |
| 308 virtual bool RunImpl() OVERRIDE; |
| 309 |
| 310 private: |
| 311 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.formatUnmountedDevice"); |
| 312 }; |
| 313 |
| 299 // Retrieves devices meta-data. Expects volume's device path as an argument. | 314 // Retrieves devices meta-data. Expects volume's device path as an argument. |
| 300 class GetVolumeMetadataFunction | 315 class GetVolumeMetadataFunction |
| 301 : public SyncExtensionFunction { | 316 : public SyncExtensionFunction { |
| 302 public: | 317 public: |
| 303 GetVolumeMetadataFunction(); | 318 GetVolumeMetadataFunction(); |
| 304 | 319 |
| 305 protected: | 320 protected: |
| 306 virtual ~GetVolumeMetadataFunction(); | 321 virtual ~GetVolumeMetadataFunction(); |
| 307 | 322 |
| 308 virtual bool RunImpl() OVERRIDE; | 323 virtual bool RunImpl() OVERRIDE; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 324 virtual ~FileDialogStringsFunction() {} | 339 virtual ~FileDialogStringsFunction() {} |
| 325 | 340 |
| 326 // SyncExtensionFunction overrides. | 341 // SyncExtensionFunction overrides. |
| 327 virtual bool RunImpl() OVERRIDE; | 342 virtual bool RunImpl() OVERRIDE; |
| 328 | 343 |
| 329 private: | 344 private: |
| 330 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 345 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
| 331 }; | 346 }; |
| 332 | 347 |
| 333 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 348 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |