| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 public: | 332 public: |
| 333 GetVolumeMetadataFunction(); | 333 GetVolumeMetadataFunction(); |
| 334 | 334 |
| 335 protected: | 335 protected: |
| 336 virtual ~GetVolumeMetadataFunction(); | 336 virtual ~GetVolumeMetadataFunction(); |
| 337 | 337 |
| 338 virtual bool RunImpl() OVERRIDE; | 338 virtual bool RunImpl() OVERRIDE; |
| 339 | 339 |
| 340 private: | 340 private: |
| 341 #if defined(OS_CHROMEOS) | 341 #if defined(OS_CHROMEOS) |
| 342 const std::string& DeviceTypeToString(chromeos::DeviceType type); | 342 std::string DeviceTypeToString(chromeos::DeviceType type); |
| 343 #endif | 343 #endif |
| 344 | 344 |
| 345 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata"); | 345 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata"); |
| 346 }; | 346 }; |
| 347 | 347 |
| 348 // File Dialog Strings. | 348 // File Dialog Strings. |
| 349 class FileDialogStringsFunction : public SyncExtensionFunction { | 349 class FileDialogStringsFunction : public SyncExtensionFunction { |
| 350 public: | 350 public: |
| 351 FileDialogStringsFunction() {} | 351 FileDialogStringsFunction() {} |
| 352 | 352 |
| 353 protected: | 353 protected: |
| 354 virtual ~FileDialogStringsFunction() {} | 354 virtual ~FileDialogStringsFunction() {} |
| 355 | 355 |
| 356 // SyncExtensionFunction overrides. | 356 // SyncExtensionFunction overrides. |
| 357 virtual bool RunImpl() OVERRIDE; | 357 virtual bool RunImpl() OVERRIDE; |
| 358 | 358 |
| 359 private: | 359 private: |
| 360 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 360 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ | 363 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |