OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 protected: | 360 protected: |
361 virtual ~FileDialogStringsFunction() {} | 361 virtual ~FileDialogStringsFunction() {} |
362 | 362 |
363 // SyncExtensionFunction overrides. | 363 // SyncExtensionFunction overrides. |
364 virtual bool RunImpl() OVERRIDE; | 364 virtual bool RunImpl() OVERRIDE; |
365 | 365 |
366 private: | 366 private: |
367 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 367 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
368 }; | 368 }; |
369 | 369 |
| 370 // Retrieve property information for multiple files, returning a list of the |
| 371 // same length as the input list of file URLs. If a particular file has an |
| 372 // error, then return a dictionary with the key "error" set to the error number |
| 373 // (base::PlatformFileError) for that entry in the returned list. |
| 374 class GetGDataFilePropertiesFunction |
| 375 : public FileBrowserFunction { |
| 376 public: |
| 377 GetGDataFilePropertiesFunction(); |
| 378 |
| 379 protected: |
| 380 virtual ~GetGDataFilePropertiesFunction(); |
| 381 |
| 382 // AsyncExtensionFunction overrides. |
| 383 virtual bool RunImpl() OVERRIDE; |
| 384 |
| 385 private: |
| 386 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFileProperties"); |
| 387 }; |
370 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 388 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |