| 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_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 490 |
| 491 FileDialogStringsFunction() {} | 491 FileDialogStringsFunction() {} |
| 492 | 492 |
| 493 protected: | 493 protected: |
| 494 virtual ~FileDialogStringsFunction() {} | 494 virtual ~FileDialogStringsFunction() {} |
| 495 | 495 |
| 496 // SyncExtensionFunction overrides. | 496 // SyncExtensionFunction overrides. |
| 497 virtual bool RunImpl() OVERRIDE; | 497 virtual bool RunImpl() OVERRIDE; |
| 498 }; | 498 }; |
| 499 | 499 |
| 500 // Retrieves property information for a file and returns it as a dictionary. | 500 // Retrieves property information for an entry and returns it as a dictionary. |
| 501 // On error, returns a dictionary with the key "error" set to the error number | 501 // On error, returns a dictionary with the key "error" set to the error number |
| 502 // (drive::FileError). | 502 // (drive::FileError). |
| 503 class GetDriveFilePropertiesFunction : public FileBrowserFunction { | 503 class GetDriveEntryPropertiesFunction : public FileBrowserFunction { |
| 504 public: | 504 public: |
| 505 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getDriveFileProperties", | 505 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getDriveEntryProperties", |
| 506 FILEBROWSERPRIVATE_GETDRIVEFILEPROPERTIES) | 506 FILEBROWSERPRIVATE_GETDRIVEFILEPROPERTIES) |
| 507 | 507 |
| 508 GetDriveFilePropertiesFunction(); | 508 GetDriveEntryPropertiesFunction(); |
| 509 | 509 |
| 510 protected: | 510 protected: |
| 511 virtual ~GetDriveFilePropertiesFunction(); | 511 virtual ~GetDriveEntryPropertiesFunction(); |
| 512 | 512 |
| 513 // AsyncExtensionFunction overrides. | 513 // AsyncExtensionFunction overrides. |
| 514 virtual bool RunImpl() OVERRIDE; | 514 virtual bool RunImpl() OVERRIDE; |
| 515 | 515 |
| 516 private: | 516 private: |
| 517 void OnGetFileInfo(drive::FileError error, | 517 void OnGetFileInfo(drive::FileError error, |
| 518 scoped_ptr<drive::DriveEntryProto> entry); | 518 scoped_ptr<drive::DriveEntryProto> entry); |
| 519 | 519 |
| 520 void CacheStateReceived(bool success, | 520 void CacheStateReceived(bool success, |
| 521 const drive::FileCacheEntry& cache_entry); | 521 const drive::FileCacheEntry& cache_entry); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 OpenNewWindowFunction(); | 827 OpenNewWindowFunction(); |
| 828 | 828 |
| 829 protected: | 829 protected: |
| 830 virtual ~OpenNewWindowFunction(); | 830 virtual ~OpenNewWindowFunction(); |
| 831 | 831 |
| 832 // AsyncExtensionFunction overrides. | 832 // AsyncExtensionFunction overrides. |
| 833 virtual bool RunImpl() OVERRIDE; | 833 virtual bool RunImpl() OVERRIDE; |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ | 836 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ |
| OLD | NEW |